Add a check condition for a loop in n8n

Go to Workflow
9,551 views
Built by Harshil Agrawal Harshil Agrawal
Created on June 17, 2021

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.

This workflow was created by Harshil Agrawal and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Categories

Marketing

Nodes Used (1)

X (Formerly Twitter)
n8n-nodes-base.twitter