Chapter 10 Writing Assembler Control Statements
190 Conditional Assembly
The table below lists the conditional assembly directives.
NOTE: These directives can be used only within macro definitions
Directive Condition for selecting block1 Condition for selecting block2
#ifdef Identifier has been defined by #define. Identifier has not been defined.
#ifndef Identifier has not been defined by #define. Identifier has been defined.
#if Expression value is not 0. Expression value is 0.
#ifn Expression value is 0. Expression value is not 0.
#ifeq
(see note) Parameters 1 and 2 are the same string. Parameters 1 and 2 are not the same string.
#ifneq
(see note) Parameters 1 and 2 are not the same string. Parameters 1 and 2 are the same string.
#iflt Expression value is negative. Expression value is not negative.
#ifle Expression value is 0 or negative. Expression value is not 0 and not negative.
#ifgt Expression value is positive. Expression value is not positive.
#ifge Expression value is 0 or positive. Expression value is not 0 and not positive.
#ifb
(see note) Parameter is the null character. Parameter is not the null character.
#ifnb
(see note) Parameter is not the null character. Parameter is the null character.