Page tree
Skip to end of metadata
Go to start of metadata

The data type of Variables specifies which data they may contain. Certain Operators and Commands require variables to be of certain types.

Definition

The data type of a variable depends on the value given to it on Initialization.

myVar = "";

=> myVar is now a String

Redefinition

The data type of a variable may be changed at any point of the game by just redefining the variable with another type.

myVar = "";

myVar = 0;

=> myVar is now a Number

Available Types

These are the available data types, and the associated strings returned by typeName:

Special Types

There are some special data types, which are not really data types, as they do not describe any particular value, e.g.

Special Types

Some more types are used to provide for a construction of syntactically richer constructs than normal unary / binary operators, e.g.