ENDIF

Abbreviation

None.

Arguments

None.

Default

None.

Description

The ENDIF control terminates an IF-ELSE-ENDIF construct. When an ENDIF control statement is encountered, the A51 assembler concludes processing the IF block and resumes assembly at the point after the IF block. Because IF blocks can be nested, assembly may continue in another IF block. The ENDIF control must be preceded by an IF, ELSEIF, or ELSE control block.

NOTES

The assembler generates a fatal error if the number of ENDIF control statements is not equal to the number of IF control statements.

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 ENDIF control may be specified both with and without the preceding dollar sign ($).

See Also

IF, ELSEIF, ENDIF, RESET, SET

Example
.
.
.
$IF TEST
.
.
.
$ENDIF
.
.
.