IF starts a conditional assembly statement, which is ended by the corresponding ENDIF conditional assembly directive. Each IF directive must be ended by a matching ENDIF directive.
Syntax
IF Expression . . . [ELSEIFxx] (optional) . . . [ELSE] (optional) . . . ENDIFRemarks
If the IFxx conditional assembly statement is not ended by an ENDIF directive, an unterminated conditional message is produced by the assembler. An ENDIF without a matching IF causes an error. ENDIF does not have an operand.
Note: The conditional directives can be nested to any level. They are not limited to use within a macro. Any operand to a conditional must be known on pass 1 to avoid errors and incorrect evaluation.
IF debug EXTERN dump:FAR EXTERN trace:FAR EXTERN breakpoint:FAR ENDIF