Back to Workflows

Add a check condition for a loop in n8n

Apps in this workflow

X (Formerly Twitter)

Created by



Created 2 years ago by harshil1712
eye 1138 views

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.

Implement complex processes faster with n8n

red icon yellow icon red icon yellow icon