Variables

Overview

Automation scripts rely heavily on Variables.

Variables allow data to be moved throughout the script. Many actions rely on input and many produce output that can be later used in other actions.

Adding Variables through Actions

media_1449466052798-1.png

Typically, a variable will be added while you design your script.

Once you drag an action onto the designer, click the Click for Options link to bring up the Options dialog.

media_1449466101937-1.png

For this particular action we have a Output field that will be set to a variable.

Click the button to the right of the field.

media_1449466665026-1.png

The Variables dialog will be invoked.

If Variable of the required type already exists, they will show in the list.

To create a new Variable, cilck the New button.

media_1449466686819-1.png

Type in the Variable name and click Ok.

media_1449466697026-1.png

The new Variable will be shown in the list.

Select the Variable and click Ok.

media_1449466705072-1.png

media_1449466714552-1.png

Adding Variable Directly

media_1449466828838-1.png

Under the Variable section, click on Create Variable to create a new variable.

This will default to a string Variable Type. Click the String type and select the appropriate Variable Type.

media_1463166712550-1.png

You can also add a Variable by clicking the Add Variable button under the Automation group.

media_1463166796617-1.png

Type in a name, select a common Variable Type and click Ok.

The Variable will be added to the Action that is selected depending on if that Action is able to accept Variables.

Deleting a Variable

media_1449466900510-1.png

Scope

media_1449467106759-1.png

media_1449467227543-1.png