Pathmaker Reference Manual
Macro Definition and Commands
Macro Language
067869 Tandem Computers Incorporated 3–7
IF Use the IF command to accomplish conditional use of source lines.
% IF [NOT]
boolean-expression
[{AND} [NOT]
boolean-expression
]
{OR }
USE
scope
NOT
specifies that the IF condition is met if
boolean-expression
is NOT true.
boolean-expression
is
{variable-name } {= | < | > | <= | >= | <> |} {variable-name }
{arithmetic-expression }{arithmetic-expression }
{alphanumeric string } {alphanumeric string }
The IF condition is met if
boolean-expression
evaluates to true.
scope
is one of the following:
digits
LINES
where
digits
is a decimal number that gives the number of lines to be
controlled following the IF command. The line count includes source lines,
command lines, and comment lines.
LINES UNTIL TAG
label
where
label
is an alphanumeric string (including -), at most 30 characters
long, which must begin with a letter and cannot end in a hyphen. When this
form of
scope
is used, a tag must be inserted to terminate scope, as follows:
%END-IF
label
where
label
matches the
label
specified in the IF command.
If the IF condition is not met, that is, evaluates to false, the lines of the file controlled
by
scope
are skipped. No lines of source code are generated for them and no
embedded commands are executed.