Special Notations in Naming Variables

From ZCubes Wiki
Revision as of 09:36, 15 June 2016 by Joseph (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In z^3, variable can be declared and used in very flexible ways. All normal naming conventions used in common languages like Javascript, Java, C, etc. are followed. The names are case sensitive, though the editor gives special consideration to upper-cased internal Z functions to aid in typing them.

An interesting way to name variables is to have long names with spaces in them. To denote a long variable, simply prefix the name with ##.

For example:

##Weight of An Elephant = 10000kg;


##Weight of An Elephant<+>1000;

11000kg

Such long names are internally converted to a name that does not have spaces. The variable can be referred both ways.

For example, in this case, "##Weight of An Elephant" and "WeightofAnElephant" both refer to the same variable.