System Debug Reference Manual (32650-90888)

506 Chapter11
System Debug Standard Functions
func typeof
TRANS %24.630
The coercion simply changes the type. Note that no complicated conversion or range
checking is performed.
Limitations, Restrictions
none
func typeof
Returns the type of an evaluated expression as a string.
Syntax
typeof (
expr
)
Formal Declaration
typeof:str (
expr
:any)
Parameters
expr
Any expression for which the resultant type is desired.
Examples
$nmdebug > wl typeof(1+2+3)
U16
$nmdebug > wl typeof(#65535)
U16
$nmdebug > wl typeof(#65535+1)
U32
$nmdebug > wl typeof (-1)
S16
$nmdebug > wl typeof ($1ffff)
S32
$nmdebug > wl typeof(true)
BOOL