The function returns a Boolean TRUE or FALSE result depending on whether or not a variable has an assigned value.
Where variable is any variable declared in the program.
ASSIGNED returns TRUE if the variable named has an assigned value (even an empty string) before the execution of this statement. If the variable has no assigned value then the function returns FALSE.
Provision of this function is due to its implementation in older versions of the language. It is advised to program in such a way so as to avoid using this statement.
001 IF ASSIGNED(record) THEN 002 CRT "The variable 'record' has been assigned a value." 003 END ELSE 004 CRT "The variable 'record' has NOT been assigned a value." 005 END
See also: UNASSIGNED
Go back to jBASE BASIC.