-
Notifications
You must be signed in to change notification settings - Fork 362
Variables
The variable manager allows the user to create variables for use with the automation. The variables can be used at run-time by script commands to store data. All script commands that call variables should wrap the variable name within brackets. When the engine identifies any text within brackets, it validates the containing text against user-defined and system variables. If a variable match is found, that text is then replaced with the text contained in the variable.
- Select 'Add' at the top to add a new variable
- To edit an existing variable, double-click the variable name or variable value
- To delete an existing variable, press the delete key with the variable name or variable value selected
Note: variables are deleted as whole, attempting to delete a variable deletes both the name and value
After clicking 'Add', the 'Add Variable' screen is presented. Simply, provide the name and value (optional) then select 'Ok'. If you choose 'Cancel' the variable will not be added.
To use a variable in a script, insert it into a supported command:
Save and Run:
This functionality is useful when you want to store a result and pass it into another command. Note there are also system variables generated at run-time which can pick up the current user's name, desktop path, etc.