NET/MASTER Network Control Language (NCL) Reference Manual

BOOLEXPR
Built-in Functions
4–14 106126 Tandem Computers Incorporated
ALL
for a Boolean expression that contains a list of left operands, specifies that
the test of the Boolean expression is true if all left operands pass the test.
Evaluation of the list stops if any left operand fails the test. Specifying
ALL allows you to override the default processing of lists of operands on
the left side of an operator.
left_operand
[ [,
left_operand
] … ]
specifies the operand(s) on the left side of an operator. You can specify
multiple left operands by separating the operands with a comma (,).
constant
specifies a constant. You must enclose the constant in quotes if the
constant is nonnumeric or if the constant is numeric but a character
comparison is required.
You can specify either single quotes (' ') or double quotes (" "). You
can represent an occurrence of the quote character in the value by
using two adjacent quote characters of the same type or by using the
alternate quote character to surround the value.
variable
specifies a variable. If a variable is compared to a number and the
variable value is either null or not numeric, the result after evaluation
is BAD. You can use the
subchar
operand to specify a variable
designator other than the ampersand (&).
number
specifies a number. You must omit quotes from a number. If a
variable is compared to a number and the variable value is either null
or nonnumeric, the result after evaluation is BAD.
operator
specifies a relational operator between the left operand and the right
operand. You can specify either a simple or strict relational operator.
Simple relational operators, except for the equal (=) and not equal (\=)
operators, strip both leading and trailing blanks when used with the
GENERIC modifier. The comparison then pads with trailing blanks as
required.
When variables are on both sides of the operator, the simple operators
perform a type check on all variables. If all values are numeric, a numeric
comparison is performed; otherwise, a character comparison is performed.
Specifying either the GENERIC or CHARACTER modifier forces a
character comparison. For character comparisons, simple operators honor