Script Steps Reference

Table Of Contents
Chapter 2
|
Control script steps 29
A global variable can be used in a calculation or script anywhere in a file, for example,
other scripts or file paths. The value of a global variable is not cleared until the file is
closed.
Local and global variables (or even two local variables in different scripts) can have
the same name but they are treated as different variables and can store different
values.
Examples
The following example sets a local variable.
Set Variable [$commission; Value:.05]
The following example sets a global variable.
Set Variable [$$commission; Value:.1]
The following example sets a global variable at a specified repetition number.
Set Variable [$$bonus[2]; Value:3 * 4]