Skip to content
Sponsor

For-each

Flowfiredcore.flow.for_each

The For-each node as the Boltjar editor draws it, with its default settings

Hand out a list one item at a time. Fire trigger to start, and wire the body’s done back into loop to release the next (both triggers must be wired); after_last fires after the last item. Items can be of any type: text, images, files or JSON.

Fired. It runs when an event lands on trigger or loop, and pulls its other inputs at that moment. A data wire never fires it.

Port Type Notes
trigger event Fires the node
loop event Fires the node
list any
Port Type Notes
each event
item any
after_last event

A loop, one item at a time. Fire trigger and each fires with item set to the first element; wire the end of the loop body back into loop to release the next one. after_last fires once the list runs out. A new trigger while a loop runs is ignored, and a Wait in the body paces it.

  • Changed: Pass a value on only when it differs from the last one.
  • Queue: Run many producers through one lane.
  • Router: Reroute a wire anywhere on the canvas: one in, one out, no change.
  • Sync: A control barrier: it fires one trigger once every wired input has fired, then resets.
  • Wait: Relay a trigger after a delay, one trigger out for each one in.
  • Wireless In: Broadcast any wires on a channel (1 to 100).
  • Wireless Out: Receive the wires broadcast by the Wireless In on the same channel (1 to 100).