The requested page is not available for selected version.
set variable
Description
Assign a value to an existing local or global variable. If the variable has not been declared, declare a new global variable and assign a value to it.
Arguments
variable
Name of the variable
value
Value to assign to the variable.
Valid contexts
This action may be used within the following project items: test modules and user-defined actions.
Notes
- In the event that multiple instances of a given variable name exist at the time set variable executes, the action operates on the one that is currently visible. (See Variables for more on visibility and scope.) To ensure that the global instance of a given variable name is accessed (assuming it exists), use the set global variable action.
- Use variables within pound sign (#) expressions to access their contained values.
Applicable Built-In Settings
The following settings are applicable to this action: remove double quotes from cells.
Example
Action Lines
Result
Related concepts