### Else / End Else

The Insert | Flow Control Command | Control Pairs | Else / End Else menu option allows you to add a conditional block to the part program. The items between the ELSE and the END ELSE commands will execute only if all other if / end if and else if / end else if blocks above the else block have failed (All evaluated to zero). ELSE / END ELSE blocks must be located at the end of a set of IF / END IF or ELSE IF / END ELSE IF blocks in order to be valid.

The Edit window command line for a ELSE / END ELSE statement reads:
ELSE/
END_ELSE/

To insert Else / End Else commands:

1. Place the cursor in the desired location of the Edit window. Note that Else / END ELSE blocks must be positioned after a IF / END IF or ELSE IF / END ELSE IF blocks.

2. Select Else / End Else from the menu bar. The ELSE / End ELSE statement will appear in the Edit window.

More:

Code Sample of Else / End Else