Vettero

For Of

Run the body for each item in a list.

Type

loop.for-of
Block Loops
Folderbasic/loops
Channels

Any

Pipe

Value

Scope

Any

For Of walks a list and runs the callback body once per item. After the last item, the main path continues and the pipe holds every value the body returned.

Use For In for object keys. Use For for a numeric range.

Configure

SettingDescription
ArrayContext path to the list (args.*, pipe.*, named variables). Must be a list

The Callback outlet must be connected to a Lambda block. If it is not connected, the run fails.

Handles

HandleRole
In (target)Incoming connection
Out (source)Continues after the loop finishes (main path, same scope)
CallbackNew callback scope for each item. Connect to Lambda

Inside the body (after Lambda), use:

PathMeaning
args.indexZero-based position in the list
args.itemCurrent item

End the body with a return. That returns from this callback, not from the whole workflow. The value is stored for this item. Continue skips the rest of this item. Break stops remaining items. An unconnected Out ends the main path after the loop.

Pipe schema

The next block on the main path reads this on the data pipe (pipe.value).

FieldTypeDescription
ResultslistValues returned for each item, in list order

Use case

  • Process each row from a query, each id from arguments, or each file from an upload list.
  • Inside the body, branch with a condition and return a mapped value to collect on the pipe.
  • Skip an item with Continue, or stop early with Break when you only need the first match.
Copyright © 2026