cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Pro/Program: IF statement in INPUT block?

akelly
11-Garnet

Pro/Program: IF statement in INPUT block?

Can I put IF statements in the INPUT section of a program?

Use case is that I only want to prompt for input of certain variables, depending on the user's input to other variables. If the user's input makes a variable N/A (i.e. suppressed feature), I don't want the program to prompt the user for input for something that isn't driving the part.

Andrew Kelly, P.E. | Senior Engineer | Crane Aerospace & Electronics | +1 440 326 5555 | F: +1 440 284 1090


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1
R.D.
1-Newbie
(To:akelly)

Yes, I do it all the time.

input

option_a yes_no

if option_a==yes

param_a number

param_b number

endif

end input

Top Tags