NET/MASTER Network Control Language (NCL) Reference Manual

NOYES
Built-in Functions
4–62 106126 Tandem Computers Incorporated
NOYES The NOYES built-in function returns a NO or YES value depending on whether a
specified expression is true (1) or false (0). A NO is returned if the result of the
evaluation is 0 (zero); a YES is returned if the result is 1. An error is issued if NCL
cannot evaluate the expression to be true or false.
NOYES(
expression
)
expression
specifies an expression to be evaluated. The result of the evaluation must be 0
(zero) or 1; if not, NCL issues an error.
Consideration
See also NULL0, which tests a specified string and returns a value of 0 (zero) if the
string is null.
Example
In the following example, NCL evaluates the expression ABC=DEF; the resulting value
is 0 (zero), indicating inequality. NCL returns NO:
&A = ABC
&B = DEF
&RESULT = NOYES(&A=&B)