Flow reference: Logic
For Each
Run a branch once per item in a list.
Run a branch once per item in a list.
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
List — list
Source items to iterate or choose from. Use the matching separator and verify at least one item exists.
Input: Text with variable suggestions.
Default: ``.
Separator — separator
The exact delimiter between list items, such as a comma. Check spaces and empty items when preparing the list.
Input: Text.
Default:
,.Item variable — itemVar
Name used for the current item while the loop branch runs. Avoid overwriting an unrelated variable.
Input: Text.
Default:
item.Outputs and next steps
each: Runs for a list item.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).
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).