Set Variable Options dialog boxThis dialog box appears so that you can specify a variable in the Set Variable script step to use in a script, calculation, or file path.
1. Type a variable name. 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. A variable name has the same naming restrictions as a field name. For more information, see About naming fields.
2. Enter a value for the variable or click Specify to create a formula to calculate the value.
3. Enter a repetition number (optional) or click Specify to create a formula to calculate the repetition. The default is 1.
4. Click OK.Name: $$TaxRate
Value: 1 if the field City contains the value “San Francisco”, 2 if City is “New York”, 3 if City is “Miami”, 0 if it’s none of those values.
Repetition: 1Set Variable [$$TaxRate; Value: Case ( City = “San Francisco” ; 1 ; City = “New York” ; 2 ; City = “Miami” ; 3 ; 0 )]