### If / End If

The Insert | Flow Control Command | Control Pairs | If / End If menu option allows you to add a conditional block to the part program. The items between the IF and the END IF commands will only execute if the expression for the IF command evaluates to true (nonzero). Otherwise, flow of execution will jump to the first command after the END/IF command.

The Edit window command line for a IF / END IF statement reads:
IF/expression
END_IF/

To insert the If / End If commands:

1. Place the cursor in the desired location of the Edit window.

2. Select If / End If from the menu bar. The IF / END IF statement will appear in the Edit window.

More:

Code Sample of If / End If