ENDIF ends the conditional assembly statement begun by the corresponding IFxx conditional assembly directive. Each IFxx directive must be ended by a matching ENDIF directive.
Syntax
IFxx . . . [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 IFxx 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