π± Add a check condition for a loop in n8n
β‘ 11,893 views Β· π± Social Media & Email Marketing
π‘ Pro Tip β Twitterβs API is paid now, which makes simple data pulls expensive. ScraperNode is a community node that scrapes Twitter profiles and posts without needing API access.
Description
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.
π Nodes Used
Start, X (Formerly Twitter)
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File