Set Variable
• Name is the name of the variable you want to create. Prefix the name with $ for a local variable or $$ for a global variable. If no prefix is added, $ is automatically added to the beginning of the name.
• Value is the value the variable is set to. You can enter text or specify a calculation.
• Repetition is the repetition (index) number of the variable you want to create. If no repetition is specified, the default is 1.
If a variable doesn’t exist, this script step will create one. A variable name has the same naming restrictions as a field name. For more information, see About naming fields.
• 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.