Add a check condition for a loop in n8n
This workflow demonstrates the use of $runIndex expression. It demonstrates how the expression can be used to avoid an …
Live
Open / InstallLast updated November 24, 2026
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. An n8n automation workflow template by Harshil Agrawal.
Community Metrics
Views
9,551
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—
Author
Harshil Agrawal
Platform
web
Pricing model
free
Categories
- Automation
Tags
- n8n
- workflow
- x-(formerly-twitter)
Capabilities
- 1 nodes
- 9,551 views
Information
TypeWorkflow
Sourcen8n
AddedSeptember 3, 2026