NET/MASTER Network Control Language (NCL) Reference Manual

SELECT
Core Statements
2–62 106126 Tandem Computers Incorporated
expression-2
specifies an expression that NCL evaluates and saves for later comparison with
expression-3
.
expression-2
can be any valid NCL expression. See
Section 10, “Expressions and Operators,” for a discussion of the evaluation of
expressions that can equate to true or false conditions.
STRICT
specifies that the comparison between
expression-2
and
expression-3
is to
be done using the strict equality operator, rather than the simple equality operator.
Strict comparison takes the terms (
expression-2
and
expression-3
) as they
are, using no blank stripping and no padding.
If STRICT is not specified, the comparison style defaults to simple, in which
leading and trailing blanks are stripped. In addition, NCL performs a numeric
comparison if both terms are numeric; otherwise, it carries out a character
comparison, padding the shorter term with trailing blanks.
expression-3
specifies true (1) or false (0).
expression-3
must equate to a true or false
condition, and can be any valid NCL expression. See Section 10, “Expressions and
Operators,” for a discussion of the evaluation of expressions that can equate to
true or false conditions.
statement
specifies any NCL statement or group of statements.
statement
can follow
THEN, OTHERWISE, or both. NCL gives a compilation error if you provide an
OTHERWISE operand without a matching
statement
. The NOP core statement
is acceptable, following THEN or OTHERWISE.
Consideration
See also IF, which provides you with an alternative to the SELECT statement for
conditional-type processing.