ASSIGNED


The ASSIGNED function returns a Boolean TRUE or FALSE result depending on whether or not a variable has been assigned a value.

 

COMMAND SYNTAX

ASSIGNED(variable)

 

SYNTAX ELEMENTS

ASSIGNED returns TRUE if the variable named has been assigned a value before the execution of this statement. If the variable has never been assigned a value then the function returns FALSE.

 

NOTES

This function has been provided for compatibility purposes, as it has been implemented in older implementations of the language. It is far better to program in such a way that this statement will not be needed.

See also UNASSIGNED.

 

EXAMPLES

IF ASSIGNED(Var1) THEN
    CRT "Var1 has been assigned a value"
END


jBC