Comments are lines that lead with a and are drawn red in the editor of Xpressionist. Such lines can be used to make comments to your expression script to be able to read it at a later point, or when you save it to a library. When a line leads with it will be ignored by the calculator of Xpressionist up until the next return:
Light_1.Position.X = Camera_1.Position.X;
You can also use the as a switch to temporarily disable some portions of your expression code, when you want to work only on one aspect of your expression:
To make comments that are longer than one line you can use this syntax:
With this you can easily disable larger chunks of your expression script:
Comments like this can be folded in the text editor of Xpressionist.
It is a good habit to make comments for all working and programming steps. |