What it does
A small n8n example that shows how to use the $runIndex expression to stop a loop from running forever. As a demo, it posts 5 tweets with the text 'Hello from n8n!'. You can swap the Twitter node for any other node and change the condition in the IF node.
Use cases
- 01Limit how many times a node repeats
- 02Learn how $runIndex works in an IF node
- 03Reuse the loop pattern with another app node
Connects
X (Formerly Twitter)