DefinitionsThe 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 CronusMAX PLUS. When a script is compiled the words are changed to their assigned value.
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 wished to assign a value to a word and change its value during runtime, you would use a variable instead of a define.
|
||||||||||