variable = expression |
The assignment instruction sets the value of the variable on the left side of the equal sign to the result of evaluating the expression on the right side. The variable can be:
a simple symbol -- such as: magic1
a compound variable -- such as: isPrime.57
a compound stem -- such as: isPrime.
When a compound stem value is set, all compound variables derived from the stem are set to this value as well. For example,
color.red = 255 * 256 * 256 /* sets the display color value for red */
color. = 0 /* color.red now has value: 0 ! */ |