Skip to main content
12-Amethyst
November 15, 2010
Question

Pro/Program: IF statement in INPUT block?

  • November 15, 2010
  • 1 reply
  • 986 views
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-Visitor
November 15, 2010

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