Darwin Help

Back to Index

assigned

Function assigned - check if a name is assigned

Calling Sequence  assigned(a)
Parameters
NameTypeDescription

a name 
Return Type  boolean
Synopsis This function tests whether name a has been assigned a value or symbol. It should not be used for tables, as the table is not a name and unassigned entries evaluate to the default value. For tables, testing should be done against the default value.
Examples
> a:=5;
a := 5
> assigned(a);
true
> b:=c;
b := c
> assigned(b);
true