Skip to main content

for_each

Control Flow

Iterates over a dataset or variable and runs commands for each item.

Parameters

Parameter Type Required Default Description
source_type string Yes Source type
Options: dataset, variable
dataset string No Dataset name when source_type is dataset
variable string No Variable name when source_type is variable
as string No item Iterator variable name
do array Yes Commands to run for each item

Usage Example

RTILA X PROJECT JSON

    {
  "command": "for_each",
  "params": {
    "source_type": "dataset",
    "dataset": "products",
    "variable": "",
    "as": "item",
    "do": []
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?