System Debug Reference Manual (32650-90888)

366 Chapter10
System Debug Standard Functions
func bound
Parameters
value
An expression to be coerced. Its type can be anything except STR. The
coercion will evaluate to FALSE if the value of the expression is 0;
otherwise, the value of the coercion will be TRUE.
Examples
$nmdebug > wl bool(0)
FALSE
$nmdebug > wl bool(1)
TRUE
$nmdebug > wl bool(123)
TRUE
$nmdebug > wl bool(a.c00023c4)
TRUE
$nmdebug > wl bool(0.0)
FALSE
Limitations, Restrictions
none
func bound
Checks for an existing definition of an operand and returns its definition type.
Syntax
bound (
operand
)
The BOUND function uses the name in
operand
to check for an existing definition for that
name. The type of the definition is returned in a string. The following table lists all
possible types:
NUMBER A valid numeric expression (in current input base)
ENV A predefined environment variable
VAR A user defined variable
FUNC A predefined function
MACRO A user defined macro
PROCEDURE A valid procedure name (in current mode)
ALIAS An alias definition