Loops
A loop repeats a section of your Wrkflow for each item in a list or each step in a numeric range. On Wrk, every loop is controlled by two Wrk Actions working together:
- Loop Through … — starts or continues a loop and emits a Loop ID plus the current item or index
- Continue Loop — tells the platform whether to fetch the next item or exit the loop for that Loop ID
Rule of thumb: each loop needs its own Continue Loop, wired back to the loop Wrk Action so you can pass the Continue Loop ID into the loop configuration.
Simple loop through a JSON array
The template below is a minimal example: it loops through [1, 2, 3], sends each value to Launch Console, then exits when the array is finished.
Other loop patterns
This page starts with the simplest JSON array loop. For more patterns, see:
- Looping — overview of loop types, pagination, and nested loops
- Loop basics tutorial — video walkthrough with pagination and nested loop patterns
Related resources
- Loop Through JSON array reference
- Continue Loop reference
- Loop Through Number Range reference
- Fields to Capture — extract only the fields you need inside a loop body