func bool [ System Debug Reference Manual ] MPE/iX 5.0 Documentation
System Debug Reference Manual
func bool
Coerces an expression into a Boolean value.
Syntax
bool (value)
Formal Declaration
bool:bool (value:any)
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
MPE/iX 5.0 Documentation