pTAL Reference Manual (H06.03+)
Compiler Directives
HP pTAL Reference Manual—523746-005
17-37
IF and IFNOT
toggle-name
was specified by one of the following:
•
DEFINETOG on page 17-25
•
SETTOG on page 17-56
•
RESETTOG on page 17-52
IF compiles the conditional code only if toggle-name is on.
IFNOT compiles the conditional code only if toggle-name is off.
The EpTAL compiler allows toggle-name to be RISC1, _TNS_E_TARGET, or
TARGETSPECIFIED, as long as toggle-name does not change the value of
target in the IF, IFNOT, or ENDIF statement.
toggle-number
is an unsigned decimal constant in the range 1 through 15. Leading zeros are
ignored.
IF compiles the conditional code only if toggle-name is on.
IFNOT compiles the conditional code only if toggle-name is off.
target
ANY
tests for a TARGET ANY directive in the current compilation.
Compiler Implicitly Sets Implicitly Resets
pTAL
•
RISC1
•
TARGETSPECIFIED
_TNS_E_TARGET
EpTAL
•
_TNS_E_TARGET
•
TARGETSPECIFIED
RISC1
TNSR_ARCH
TNS_ARCH
ANY
RISC1
_TNS_E_TARGET
TARGETSPECIFIED
VST695.vsd










