Variables
This page provides an overview of different types of variables that can be used in a flow, and how to initialize and set them. Variables allow you to maintain and manipulate data throughout your flow, and can hold values. By initializing and setting variables, you can create more complex and dynamic flows that respond to changing conditions and user inputs.
Initialize Variables
You can define variables from the left top menu to maintain throughout your flow.
Once the setting is selected, you need to configure variables.
-
Click Initialize Variables. Result: The “Initialize Variables” window will open.
-
Give a relevant name to your variable.
-
Chose the type of variable you want to create.
-
Enter the default value you want to assign to it.
-
Save and publish/update your flow.
Types of variables
Here are the different types of variables you can initialize:
-
Text: A variable that holds a string of characters, such as words or sentences.
-
Number: A variable that holds a numerical value.
-
Boolean: A variable that holds a true/false value.
-
Lookup: A variable that holds a reference to data stored elsewhere in the flow.
-
Object: A variable that holds a group of variables or properties.
-
Array: A variable that holds a collection of values of the same data type, such as a list of numbers or strings.
Set Variable
This action step enables you to change the value of an existing variable.
Once the action step is selected, you need to configure it.
-
Click on the step to configure it. Result: The “Set a value to a variable” window will open.
-
Select the variable you want to modify.
-
Enter the new value you want to assign to it.
-
Save and publish/update your flow.