{
  "name": "Execute Set node based on Function output",
  "nodes": [
    {
      "id": null,
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        300
      ]
    },
    {
      "id": null,
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "position": [
        200,
        300
      ]
    },
    {
      "id": null,
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        90
      ]
    },
    {
      "id": null,
      "name": "Set1",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        230
      ]
    },
    {
      "id": null,
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        400,
        300
      ]
    },
    {
      "id": null,
      "name": "Set2",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        370
      ]
    },
    {
      "id": null,
      "name": "NoOp",
      "type": "n8n-nodes-base.noOp",
      "position": [
        600,
        510
      ]
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NoOp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Function": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}