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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Pro/Program: IF statement in INPUT block?

akelly
12-Amethyst

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.
2-Explorer
(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

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags