n8n Workflow

Add A Check Condition For A Loop In N8n

This n8n workflow adds tasks and integrates with various services. Add A Check Condition For A Loop In N8n - ready to import and run in your n8n instance.

n8n workflow.json

About This Script

This n8n workflow adds tasks and integrates with various services. Add A Check Condition For A Loop In N8n - ready to import and run in your n8n instance.
Features:
  • Conditional logic and branching
Source Code
{
    "nodes": [
        {
            "name": "On clicking 'execute'",
            "type": "n8n-nodes-base.manualTrigger",
            "position": [
                250,
                300
            ],
            "parameters": [],
            "typeVersion": 1,
            "id": "c9631679-62f0-4bbf-a7cc-88ba9608a7e7"
        },
        {
            "name": "IF",
            "type": "n8n-nodes-base.if",
            "position": [
                600,
                150
            ],
            "parameters": {
                "conditions": {
                    "number": [
                        {
                            "value1": "={{$runIndex}}",
                            "value2": 4
                        }
                    ]
                }
            },
            "typeVersion": 1,
            "id": "fc2a89e0-4f77-4253-ae1c-0ce548f285a1"
        },
        {
            "name": "NoOp",
            "type": "n8n-nodes-base.noOp",
            "position": [
                750,
                300
            ],
            "parameters": [],
            "typeVersion": 1,
            "id": "8f308a61-1dd3-4b2d-9f44-43fcb2beaa64"
        },
        {
            "name": "Twitter",
            "type": "n8n-nodes-base.twitter",
            "position": [
                440,
                300
            ],
            "parameters": {
                "text": "Hello from n8n!",
                "additionalFields": []
            },
            "credentials": {
                "twitterOAuth1Api": "Dummy Account"
            },
            "typeVersion": 1,
            "id": "aa733d9a-d0cd-4f8b-92fa-49c069a8dab2"
        }
    ],
    "connections": {
        "IF": {
            "main": [
                [
                    {
                        "node": "Twitter",
                        "type": "main",
                        "index": 0
                    }
                ],
                [
                    {
                        "node": "NoOp",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Twitter": {
            "main": [
                [
                    {
                        "node": "IF",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "On clicking 'execute'": {
            "main": [
                [
                    {
                        "node": "Twitter",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n #automation #workflow
Quick Actions
More in n8n Workflows