IF


Control based on absolute expression (assembly performed when the value is true).

[Syntax]

[Δ]$[Δ]IF[Δ]absolute-expression[Δ][;comment]

[Function]

-

If the absolute expression specified by the operand is evaluated as being true (≠ 0).

(a)

If this control instruction and the corresponding ELSEIF, ELSEIFN, or ELSE control instruction exist, assembles the block enclosed within this control instruction and the corresponding control instruction.

(b)

If none of the corresponding control instruction detailed above exist, assembles the block enclosed within this control instruction and the corresponding ENDIF control instruction.

 

-

If the absolute expression is evaluated as being false (= 0).

Skips to the ELSEIF, ELSEIFN, ELSE, or ENDIF control instruction corresponding to this control instruction.

[Use]

-

With these conditional assembly control instructions, source statements subject to assembly can be changed without major modifications to the source program.

-

If a statement for debugging that becomes necessary only during the program development is described in a source program, whether or not the debugging statement should be assembled (translated into machine language) can be specified by setting switches for conditional assembly.