Page tree
Skip to end of metadata
Go to start of metadata

%IsNull function

If the first parameter Arg is valid (i.e. the value of attribute VLD of parameter Arg is TRUE), the function returns the parameter Arg. If the first parameter Arg is invalid, function returns the second parameter Replacement.
   UNIVAL in Arg
   UNIVAL in Replacement

Arg Compared value.
Replacement Replacement value if Arg is invalid.

 INT _i, _j, _k

 _i  := %IsNull ( Sec, Min)         ; returns value of Sec, as it is always valid
 _i  := %SetInvalid(_i)              ; invalidate the value
 _j  := 999 
 _k  := %IsNull ( _i, _j)           ; returns value 999, as the value of _i is invalid

Related topics
Write a comment…