#
Manage Data with the Variable Assigner
#
Manage Data with the Variable Assigner
Use this component to set or modify variables dynamically during workflow execution.
Step 1: Create an Environment Variable
The Variable Assigner can only interact with variables that have already been created. You must first define an Environment Variable in the workflow's settings before using this component.
For detailed instructions, refer to the [Environment Variable] section.
Step 2: Add and Link the Component
Drag the Variable Assigner component from the Component Panel onto the canvas.
Create a visual edge from the output node of a preceding component to the input node of the Variable Assigner.
**Step 3: Select an Environment Variable Label **
Click the component to open its Configuration Panel.
In the Label field, select an existing Environment Variable from the dropdown.
Only Environment Variables that have been pre-defined in the workflow settings are available for selection here.
**Step 4: Map the Value ** In the Value field, choose the data you want to assign—this can be mapped from a previous component's output or set as a static value.
**Step 5: Select the Operation Type ** Under the Operation setting, choose one of the following options:
Overwrite: Replaces any existing value in the target variable.
Append: Adds the new value to an existing array in the target variable.
Tip: This component is especially useful for collecting or aggregating values across multiple iterations within a Loop, before passing the final output to downstream components.
