[Next] [Prev] [Right] [____] [Up] [Index] [Root]
Testing whether an identifier is assigned

Testing whether an identifier is assigned

To test whether an identifier is assigned, type

> print assigned IDENTIFIER;

Magma will return true or false depending on whether the identifier has been assigned.

Example

> fred := 42;
> print assigned af9uq43957ap;
false
> print assigned fred;
true
[Next] [Prev] [Right] [____] [Up] [Index] [Root]