IF
ANSI
The Conditional Compilation Directives allow the testing of certain conditions to determine if a section of PL/B code is included or excluded from the compilation process. The operandi tested must be equated variables, binary, decimal, hex or octal values. Any number of IFxx directives may be active at any one time but they cannot be nested. All active IFxx directives are deactivated when an XIF directive is encountered. They use the following formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
value1
Required. A previously EQUATEd label, binary, decimal, octal, hexadecimal value that is evaluated.
value2
Required. A previously EQUATEd label, binary, decimal, octal, or hexadecimal value that is evaluated.
Flags Affected: NONE
See Also: Example Code, %IF, Compiler Directives
![]() |