Flow reference: Variables

Set Variable

Store a value for later steps.

Store a value for later steps.

When and how to use it

Connect the input from the preceding step on the path that should perform this operation.
Fill the fields with data available in the trigger's context.
Connect the needed outputs; an unconnected path cannot run later blocks.

Configuration fields

Variable name — name


The name used by this action. Command names, variable keys and channel names follow different rules; read the block purpose before reusing a name.

Input: Text.

Default: counter.


Value — value


The value to store, compare or process. Use the required type and a variable only after the source block has run.

Input: Text with variable suggestions.

Default: 0.

Outputs and next steps

out: Continue to the next step.

Test and troubleshoot

Invoke the correct trigger with simple inputs and verify the expected effect. Confirm variables exist on this path. A preview alone does not verify Discord delivery.

Save, validate and publish. Perform one real test and read the first relevant log error. [Testing](/docs/flow-testing) · [Variables](/docs/flow-variables) · [Permissions](/docs/flow-permissions).