Set Variable
Updates a declared Flow variable from a control path.
Updates a declared Flow variable from a control path.
When to use
Use it when later paths need a named value that changes during execution.
Example
On a matched condition, store the current indicator value for a later comparison.
Update state deliberately
Declare a numeric variable signalCount with initial value 0. On a matched control path, configure Set Variable with that name, Operation Increment, and a literal increment of 1. Its New Value is 1 after the first update; a later Read Variable in the same supported state context can observe 1. Set with literal 1 behaves differently on the second arrival: it remains 1, whereas Increment yields 2. Connect the control path through Next, and keep the selected variable type compatible with the value source. A variable write does not persist an arbitrary account setting outside its defined Flow state scope.
Common problems
Declare the variable first and match its type. This node changes a value only when its control path runs.
Next steps
Review the generated Parameters, Outcomes, and Data Ports on this page, then open the related guides for the complete workflow.
Related documentation
- Manage variablesDeclare, read, update, rename, and remove Flow variables while preserving their references.
- Read VariableExposes the current value of a declared Flow variable as data.
- How a strategy starts and continuesUnderstand primary activation, control outcomes, and why data alone does not execute an action.