Definitions
The sole purpose of a definition is assign a value to a word and therefore make a script easier for a human to read. They do not use utilize any bytecode space in a script as they are not sent to the Cronus Zen. When a script is compiled the words are changed to their assigned value.
Syntax
Only Integer values can be assigned to the value of a constant.
Once a word is defined and given a value, that word can be used anywhere in the script where a value is valid, as shown below;
A define is a static value and therefore cannot be changed during run time, as shown below;
If you wish to assign a value to a word and change its value during run-time, you would use a variable instead of a define.
Last updated