How it works
The Loop node has an input on the right (receives data), a loopback output also on the left (sends data back upstream), and an exit output on the right (fires when the loop ends). The only configuration is max iterations – the safety limit on how many times the Loop node runs. It loops back at most one time fewer: with 1 it never loops back; with 2 it loops back at most once. When data reaches the loop body before the Loop node, as in the example below, that’s also the most passes the body gets. When it reaches the Loop node first, the body gets one pass fewer. When data arrives at the loop:- If iterations remain, the loopback output fires, sending the data back into the loop body
- On the final iteration, the exit output fires instead, releasing the data downstream