ELSEIF

Abbreviation

None.

Arguments

A numeric expression.

Default

None.

Description

The ELSEIF control is used to introduce an alternative program block after an IF or ELSEIF control. The ELSEIF block is only assembled if the specified numeric expression is non-zero (TRUE) and if previous IF and ELSEIF conditions in the IF-ELSE-ENDIF construct were FALSE. ELSEIF blocks are terminated by an ELSEIF, ELSE, or ENDIF control.

NOTES

You may not specify this control on the command line; however, you may use this control any number of times within the source file.

The ELSEIF control may be specified both with and without the preceding dollar sign ($). When specified with the $, the ELSEIF control accesses only symbols defined with the SET and RESET controls. When used without the $, the ELSEIF control accesses all symbols.

See Also

IF, ELSEIF, ENDIF, RESET, SET

Example
.
.
$IF SWITCH = 1 ; Assemble if switch is 1
.
.ELSEIF SWITCH = 2 ; Assemble if switch is 2
.
$ELSEIF SWITCH = 3 ; Assemble if switch is 3
.
$ENDIF
.
.
.