ES | EN
Marketing

Add a check condition for a loop in n8n

Twitter
Nodes 4
Complexity Intermediate
Category Marketing
n8n popularity 9,551 views in n8n library

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.

Apps and nodes included

Step-by-Step Implementation Guide

Control de Bucles en n8n

Demuestra el uso de la expresión `$runIndex` para evitar bucles infinitos. Crea 5 Tweets. Actualiza la condición en el nodo IF para controlar las iteraciones.

Nodos Utilizados

  • Twitter: Para publicar tweets.

Pasos de Configuración

  • Paso 1: Conecta el nodo Twitter a tu cuenta.
  • Paso 2: Configura el nodo Twitter para crear un tweet con el texto deseado.
  • Paso 3: Agrega un nodo IF para controlar la cantidad de iteraciones (ej. `$runIndex < 5`).
  • Paso 4: Conecta el nodo IF a Twitter.
  • Paso 5: Ejecuta el workflow para verificar que se creen 5 tweets.
⚡ Open and edit in Scriflow ← Browse all n8n templates

Scriflow builds and adapts n8n workflows with AI. Open this template in the editor to get the import-ready JSON.