NET/MASTER Network Control Language (NCL) Reference Manual

NULL0
Built-in Functions
106126 Tandem Computers Incorporated 4–63
NULL0 The NULL0 built-in function tests a specified string and returns a value of 0 (zero) if
the string is null.
NULL0(
string
)
string
specifies the string to be tested. If it is not a null string, the input string is
returned. If
string
is a null string, 0 (zero) is returned.
Consideration
See also NOYES, which determines whether a specified expression is true (1) or false
(0).
Examples
In the following example, the string supplied has a null value, and 0 (zero) is returned:
&A = 0
&RESULT = NULL0(D2X(&A))
In the following example, the supplied string is not null, so it is returned. NCL returns
“the black dog”:
SAY NULL0(the black dog)