CoCoA:IsDefined

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

IsDefined

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.

NOTE: this function used to be named Defined.

Example

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

Syntax

IsDefined(E)

where E is a CoCoA expression.
   <type>memory</type>
   <type>boolean</type>