Keil Logo Arm Logo

A251 User's Guide

ELSE Assembler Statement

Arguments
ELSE
Description

The ELSE statement introduces an alternate program block after an IF or ELSEIF statement. The ELSE block is assembled only if the prior IF or ELSEIF condition expression was false.

ELSE blocks are terminated by an ENDIF statement.

Note

  • Do not confuse the ELSE statement with the $ELSE directive. They are not equivalent and they may not be used with the same symbols.
See Also

ELSEIF, ENDIF, EQU, IF, LIT, SET

Example
IF (SWITCH = 1)
.
.
.
ELSEIF (SWITCH = 2)
.
.
.
ELSE
.
.
.
ENDIF

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.