Set Variable
Explore the concept of variables and how to set them up with our Set Variable block. Choose from 6 different formats and easily assign values to your variables.
Last updated
Explore the concept of variables and how to set them up with our Set Variable block. Choose from 6 different formats and easily assign values to your variables.
Last updated
Imagine Variable as a box, which can be named and you can store "things". In this scenario, "things" are values (numbers, texts, dates, etc...).
Set Variable is a powerful block that allows you to create, select format, and set a value to a variable.
To use the card, select it from utilities.
Learn more about the concept of a variable from this article.
You can select a variable that already exists or create a new one.
Variable name should start with alphabet; Cannot have special characters except underscore (_).
Just type the name, select the format, and click on "create".
When it comes to selecting the format of the variable, you have 6 formats to choose from.
Text
Number
Boolean
Date
Object
Array
You can type the value you want to give to the variable. You can also make it depend on other variable values.
In the below screenshot, we have named the variable as phone_book and made the value dependent on other variable as recipient.phone.