 | A166 User's Guide |  |
|
|
| ELSE Assembler Directive| Abbreviation | None. | | Arguments | None. | | Default | None. | | µVision | None. | | Description | The ELSE directive introduces an alternate program block after an IF or ELSEIF directive. The ELSE block is assembled only if the prior IF or ELSEIF condition expression was false. ELSE blocks are terminated by an ENDIF directive. Note - Do not confuse the ELSE directive with the ELSE statement. They are not equivalent and they may not be used with the same symbols.
- This directive may not be specified on the command line. It must be specified in a source file.
| | See Also | ELSEIF, ENDIF, IF, RESET, SET | | Example |
$IF (SWITCH = 1)
.
.
.
$ELSEIF (SWITCH = 2)
.
.
.
$ELSE
.
.
.
$ENDIF
|
|
|