Program > Editing a Design > Input Parameters and Prompts > Conditional Input Statements
  
Conditional Input Statements
The input list in Pro/PROGRAM can include IF - ELSE - ENDIF statements. When an IF condition evaluates to FALSE, you are not prompted to enter the input values.
For example:
INPUT
INCLUDE_HOLE YES_NO
"Should the hole be included?:"
IF INCLUDE_HOLE == YES
HOLE_DIA NUMBER
"Enter diameter for hole"
ELSE
...
ENDIF
...
END INPUT
When executing this program, you are prompted to enter the diameter of a hole only if a hole feature is included.