Variable Exists
The Variable Exists action determines if a specific variable exists in a botflow. It looks for a variable and then sets the variable to “TRUE” if it exists or “FALSE” if it does not already exist in a running botflow in real time.
For example, if you have a variable named Orig_Var and a second variable named NameSuffix of which the value is a number, you can use the Duplicate Variable action to create a new variable using NameSuffix as part of the variable name and add it in a loop to create multiple variables. After you create the new variables, you can run a task to clean up the new variables and reset the original variable for the next botflow run. To do that, you need to delete the newly created variables. If you do not know the name of the newly created variables, though, you can create and run a Variable Exists action first.
Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.
Create a Variable Exists action
-
Click Data and select Variable Exists from the Actions list.
-
Select the Variable that you want to find. Optionally, click the Magic Wand to use the Expression Builder.
-
Enter the location where you want to save the TRUE/FALSE results of the variable search in the Save to field. Optionally, click the Magic Wand to use the Expression Builder.
-
(Optional) Add a Note to document special instructions or functionality.
-
Toggle the run switch to Run and click OK to execute and save the action.