Assigning values to variables using Script mode
Learn how to assign values to variables using the Script development view.
About this task
Variables might receive default values when created, by assignment, or by other commands during script runtime. This procedure describes how to assign values to variables.
Before you begin
The variable must be created before. See how to create variables in Creating variables using Script mode.
Procedure
To assign values to variables in your script, you need to use either the Set Variable (setVar
) or Set Variables (setVars
) commands.
What to do next
You can see default values in the --value
input parameter. During the script runtime, you can debug your script and see the values in the variables in the Global variables window. For more information about debugging
scripts, see Debugging scripts.