Elementium Sign in
Contents

Logic · Step

For each

Run the Each item steps once for every item of a list (at most 50), then Done.

Free plan for_each

In a flow

“When a button is clicked, for each.”

For each of Top members: give a role

What it does

Run the Each item steps once for every item of a list (at most 50), then Done. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 2 values later steps can use. Find it under Logic in the palette.

When to use it

Use it to decide what happens next: run the Each item steps once for every item of a list (at most 50), then Done.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Sockets: settings you can wire

List List

The list to go through, like Members from Top members. At most 50 items.

What goes there: Type it in the side panel, or wire in a list. e.g. Hello there, and more like it

If it's empty: Optional. Left empty and unwired, the step runs without it.

Connects fromAI check the answersAlarms that are dueBest by a fieldChange list atCheck for a lineClear a leaderboardCollect messages until doneColour gradientand 177 more

Values it gives

Item List item

The item this round is on. e.g. one member

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more

Index Number

Which round it is, 1 for the first item. e.g. 42

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more

Often next

Related in Logic

Wires and sockets · Data values · Plans