About Set Variable
CORE NODE
|
LIVE
The Set Variable node allows you to store values within a Decimal workflow so they can be reused by downstream nodes.
It helps manage workflow state, simplify data handling, and make workflows easier to read and maintain by storing intermediate values, computed outputs, or control flags.
It helps manage workflow state, simplify data handling, and make workflows easier to read and maintain by storing intermediate values, computed outputs, or control flags.
Free 10k credits/mo
Set Variable node
Verified
This node is build and supported by Decimal
Settings
Variables are the most core component of any dynamic and automated workflow. It allows workflows access dynamic values during runtime.
Variable name
Defines the name of the variable that will store the value.
This name is automatically store under the variables section for later quicker reference and monitoring.
This name is automatically store under the variables section for later quicker reference and monitoring.
Value
Specifies the value to assign to the variable.
This can be a static value or data derived from previous workflow steps.
This can be a static value or data derived from previous workflow steps.
Value type
Determines the data type of the stored value.
Supported types include String, Number, Boolean, and JSON.
Selecting the correct type ensures proper usage in downstream nodes.
Supported types include String, Number, Boolean, and JSON.
Selecting the correct type ensures proper usage in downstream nodes.
FAQ about Set Variable
1. What does the Set Variable node do?
It stores a value under a defined name so that it can be reused later in the workflow, helping maintain consistency and reduce repetitive inputs.
2. When should I use the Set Variable node?
Use it when you need to save values from previous steps, reuse data across multiple nodes, update values dynamically, or simplify complex data paths.
These node is very versatile and can be used to store a range of values across wallet addresses, amounts, object definitions, datetime etc.
These node is very versatile and can be used to store a range of values across wallet addresses, amounts, object definitions, datetime etc.
3. What types of values can be stored?
You can store numbers, text, boolean values (true/false), JSON objects, or outputs from previous nodes and API responses.
This node is very versatile and can be used to store a range of values across wallet addresses, amounts, object definitions, datetime etc.
This node is very versatile and can be used to store a range of values across wallet addresses, amounts, object definitions, datetime etc.
4. Can I update an existing variable?
Yes. Setting a variable again with the same name overwrites the previous value, allowing the workflow to update state as it progresses.
5. How can I use a variable after setting it?
Stored variables can be referenced in later steps such as conditions (If / Else), API calls, calculations, or notifications, enabling dynamic and flexible workflows by simply dragging their variable name in the required field.
It will show up as ${xyz}
It will show up as ${xyz}