Add a check condition for a loop in n8n

Nodes

de9fd81e-5d34-45e3-a5ae-18e2ed63a525

Created by

HaHarshil Agrawal

Last edited 38 days ago

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.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!