Action
Tests whether a variable has been assigned an initial value.
Syntax
bTest = IsSet(aVar)
Variable
|
Description
|
bTest
|
TRUE if the variable has been assigned. BOOLEAN.
|
aVar |
The variable to check. ANYTYPE.
|
Notes
IsSet checks whether a variable has been assigned an initial
value, returning TRUE if it has been assigned a value or FALSE if
it has not.
For aggregate types, for example LIST OF and records, IsSet() is
implementation-dependent. You should only call IsSet() against the
individual items of that type.
Example
STRING s // uninitialized variable
INTEGER i = 1 // initialized variable
Print (IsSet (s)) // prints: FALSE
Print (IsSet (i)) // prints: TRUE