.if

Name

if -- 

Synopsis

.if absolute expression

Description

The .if marks the beginning of a section of code which is only considered part of the source program being assembled if the argument (which must be an absolute expression) is non-zero. The end of the conditional section of code must be marked by .endif (see .endif); optionally, you may include code for the alternative condition, flagged by .else (see .else).

The following variants of .if are also supported:

.ifdef symbol

Assembles the following section of code if the specified symbol has been defined.

.ifndef symbol, .ifnotdef symbol

Assembles the following section of code if the specified symbol has not been defined. Both spelling variants are equivalent.