5.7.4 If Directive

The .if expr directive marks the beginning of a section of code that is only considered part of the source program being assembled if the argument expr is non-zero. The end of the conditional section of code must be marked by an .endif; optionally, you may include code for the alternative condition, flagged by .else or .elseif.

The assembler also supports the following variants of .if.