up previous next

Defined

Syntax

Defined(E)

where E is a CoCoA expression.
    

Summary

check if an expression has been defined

Description

This function returns TRUE if E is defined, otherwise it returns false. Typically, it is used to check if a name has already been assigned.

example

    
Defined(MyVariable);
FALSE
-------------------------------
MyVariable := 3;
Defined(MyVariable);
TRUE
-------------------------------