Assign Variable Example
Here is an example of a variable being created in EZ-Script
Code:$MyVariable = "Some text"
*Note: Remember that variables are case-sensitive. This is covered in an previous step of this tutorial.
Code:var MyVariable = "Some text";
Example of Using Global Variables
If you have a variable that you would like to share with other robot skills, use the setVar() function. This will push the variable's current value into the global stack so it is available by other robot skills.
Code:var myVariable = "This is some text";
Code:var myVariable = getVar("$myVariable");
[head2]Global Variable Viewer[/head]
The global variable viewer will display all variables in ARC. By clicking on a variable, it will insert the setVar() command where the cursor is.