Add a check condition for a loop in n8n
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
This workflow demonstrates the use of $runIndex expression. It demonstrates how the expression can be used to avoid an infinite loop.
The workflow will create 5 Tweets with the content 'Hello from n8n!'.
You can use this workflow by replacing the Twitter node with any other node(s) and updating the condition in the IF node.