{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "0f79b7f9-d214-4587-b475-bc429519b976",
        "inputNode": {
          "bounding": [
            -1300.000017550201,
            3558.890486571321,
            120,
            120
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "f1d2942a-bec9-4507-9b79-870b1d8da1a7",
            "linkIds": [
              54
            ],
            "localized_name": "model",
            "name": "model",
            "pos": [
              -1200.000017550201,
              3578.890486571321
            ],
            "type": "MODEL"
          },
          {
            "id": "b6c928b1-99d0-44a3-9815-13fe1d2fd758",
            "linkIds": [
              67
            ],
            "name": "text",
            "pos": [
              -1200.000017550201,
              3598.890486571321
            ],
            "type": "STRING"
          },
          {
            "id": "a2a9c327-12c1-4634-9f1c-d5453fb4361d",
            "linkIds": [
              74
            ],
            "name": "clip_name",
            "pos": [
              -1200.000017550201,
              3618.890486571321
            ],
            "type": "COMBO"
          },
          {
            "id": "d0d3481e-6433-4024-8f9e-dba8339d8141",
            "linkIds": [
              75
            ],
            "name": "vae_name",
            "pos": [
              -1200.000017550201,
              3638.890486571321
            ],
            "type": "COMBO"
          }
        ],
        "links": [
          {
            "id": 38,
            "origin_id": 56,
            "origin_slot": 0,
            "target_id": 54,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 39,
            "origin_id": 58,
            "origin_slot": 0,
            "target_id": 55,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 40,
            "origin_id": 53,
            "origin_slot": 0,
            "target_id": 55,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 41,
            "origin_id": 52,
            "origin_slot": 0,
            "target_id": 56,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 42,
            "origin_id": 59,
            "origin_slot": 0,
            "target_id": 58,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 43,
            "origin_id": 56,
            "origin_slot": 0,
            "target_id": 58,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 44,
            "origin_id": 54,
            "origin_slot": 0,
            "target_id": 58,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 45,
            "origin_id": 57,
            "origin_slot": 0,
            "target_id": 58,
            "target_slot": 3,
            "type": "LATENT"
          },
          {
            "id": 54,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 59,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 55,
            "origin_id": 55,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 67,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 56,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 74,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 52,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 75,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 53,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "name": "Z-Image Turbo (Text to Image)",
        "nodes": [
          {
            "flags": {},
            "id": 52,
            "inputs": [
              {
                "link": 74,
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  41
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              }
            ],
            "pos": [
              -1120,
              3530
            ],
            "properties": {
              "Node name for S&R": "CLIPLoader",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "text_encoders",
                  "name": "qwen_3_4b.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.73"
            },
            "size": [
              270,
              120
            ],
            "type": "CLIPLoader",
            "widgets_values": [
              "qwen_3_4b.safetensors",
              "lumina2",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 53,
            "inputs": [
              {
                "link": 75,
                "localized_name": "vae_name",
                "name": "vae_name",
                "type": "COMBO",
                "widget": {
                  "name": "vae_name"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  40
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE"
              }
            ],
            "pos": [
              -1110,
              3730
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "models": [
                {
                  "directory": "vae",
                  "name": "ae.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors"
                }
              ],
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.73"
            },
            "size": [
              270,
              90
            ],
            "type": "VAELoader",
            "widgets_values": [
              "ae.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 54,
            "inputs": [
              {
                "link": 38,
                "localized_name": "conditioning",
                "name": "conditioning",
                "type": "CONDITIONING"
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  44
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -630,
              3860
            ],
            "properties": {
              "Node name for S&R": "ConditioningZeroOut",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.73"
            },
            "size": [
              230,
              50
            ],
            "type": "ConditioningZeroOut",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 55,
            "inputs": [
              {
                "link": 39,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 40,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  55
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "slot_index": 0,
                "type": "IMAGE"
              }
            ],
            "pos": [
              20,
              3440
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.64"
            },
            "size": [
              230,
              80
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 56,
            "inputs": [
              {
                "link": 41,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 67,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  38,
                  43
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -810,
              3490
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.73"
            },
            "size": [
              410,
              320
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "3d stylized style, a person smiling"
            ]
          },
          {
            "flags": {},
            "id": 58,
            "inputs": [
              {
                "link": 42,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 43,
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING"
              },
              {
                "link": 44,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              },
              {
                "link": 45,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  39
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "slot_index": 0,
                "type": "LATENT"
              }
            ],
            "pos": [
              -320,
              3550
            ],
            "properties": {
              "Node name for S&R": "KSampler",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.64"
            },
            "size": [
              320,
              580
            ],
            "type": "KSampler",
            "widgets_values": [
              12673005598788,
              "randomize",
              4,
              1,
              "res_multistep",
              "simple",
              1
            ]
          },
          {
            "flags": {},
            "id": 59,
            "inputs": [
              {
                "link": 54,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 4,
            "order": 7,
            "outputs": [
              {
                "links": [
                  42
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "slot_index": 0,
                "type": "MODEL"
              }
            ],
            "pos": [
              -320,
              3430
            ],
            "properties": {
              "Node name for S&R": "ModelSamplingAuraFlow",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.64"
            },
            "size": [
              310,
              80
            ],
            "type": "ModelSamplingAuraFlow",
            "widgets_values": [
              3
            ]
          },
          {
            "flags": {},
            "id": 57,
            "inputs": [],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  45
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "slot_index": 0,
                "type": "LATENT"
              }
            ],
            "pos": [
              -1240,
              3900
            ],
            "properties": {
              "Node name for S&R": "EmptySD3LatentImage",
              "cnr_id": "comfy-core",
              "enableTabs": false,
              "hasSecondTab": false,
              "secondTabOffset": 80,
              "secondTabText": "Send Back",
              "secondTabWidth": 65,
              "tabWidth": 65,
              "tabXOffset": 10,
              "ver": "0.3.64"
            },
            "size": [
              400,
              150
            ],
            "type": "EmptySD3LatentImage",
            "widgets_values": [
              1024,
              1024,
              1
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            305.0000617198034,
            3558.890486571321,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "56faeeb3-2123-455c-a58c-e8951db8f0f2",
            "linkIds": [
              55
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              325.0000617198034,
              3578.890486571321
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 9,
          "lastLinkId": 75,
          "lastNodeId": 71,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "VHS_KeepIntermediate": true,
    "VHS_MetadataImage": true,
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "ds": {
      "offset": [
        3474.201355446236,
        -1440.5890992246598
      ],
      "scale": 0.3375965149340718
    },
    "frontendVersion": "1.42.8"
  },
  "groups": [
    {
      "bounding": [
        -2040,
        2520,
        1940,
        980
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 8,
      "title": "Example 2 - LoRA Switch"
    },
    {
      "bounding": [
        -2040,
        2070,
        1940,
        420
      ],
      "color": "#3f789e",
      "flags": {},
      "font_size": 24,
      "id": 9,
      "title": "Example 1 - String Selection"
    }
  ],
  "id": "30235234-3bb4-42cc-9e1c-33ad1bba0192",
  "last_link_id": 75,
  "last_node_id": 71,
  "links": [
    [
      3,
      1,
      0,
      4,
      0,
      "STRING"
    ],
    [
      6,
      5,
      0,
      8,
      0,
      "STRING"
    ],
    [
      58,
      60,
      0,
      61,
      0,
      "MODEL"
    ],
    [
      59,
      62,
      0,
      61,
      1,
      "MODEL"
    ],
    [
      60,
      60,
      0,
      62,
      0,
      "MODEL"
    ],
    [
      61,
      64,
      0,
      63,
      0,
      "IMAGE"
    ],
    [
      62,
      61,
      0,
      64,
      0,
      "MODEL"
    ],
    [
      63,
      66,
      0,
      61,
      2,
      "BOOLEAN"
    ],
    [
      64,
      66,
      0,
      65,
      2,
      "BOOLEAN"
    ],
    [
      65,
      67,
      0,
      65,
      0,
      "STRING"
    ],
    [
      66,
      68,
      0,
      65,
      1,
      "STRING"
    ],
    [
      68,
      65,
      0,
      64,
      1,
      "STRING"
    ],
    [
      70,
      3,
      0,
      1,
      0,
      "STRING"
    ],
    [
      71,
      2,
      0,
      1,
      1,
      "STRING"
    ],
    [
      72,
      6,
      0,
      5,
      1,
      "STRING"
    ],
    [
      73,
      7,
      0,
      5,
      0,
      "STRING"
    ]
  ],
  "nodes": [
    {
      "flags": {},
      "id": 62,
      "inputs": [
        {
          "link": 60,
          "name": "model",
          "type": "MODEL"
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [
        {
          "links": [
            59
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        -1960,
        2800
      ],
      "properties": {
        "Node name for S&R": "LoraLoaderModelOnly",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "models": [
          {
            "directory": "loras",
            "name": "zimage-90_s_anime_melancholy.safetensors",
            "url": "https://civitai.com/api/download/models/2484513"
          }
        ],
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        400,
        140
      ],
      "type": "LoraLoaderModelOnly",
      "widgets_values": [
        "zimage-90_s_anime_melancholy.safetensors",
        1
      ]
    },
    {
      "flags": {},
      "id": 63,
      "inputs": [
        {
          "link": 61,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 18,
      "outputs": [],
      "pos": [
        -450,
        2710
      ],
      "properties": {
        "Node name for S&R": "SaveImage",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        310,
        520
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "flags": {},
      "id": 60,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            58,
            60
          ],
          "name": "MODEL",
          "type": "MODEL"
        }
      ],
      "pos": [
        -2020,
        2620
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "models": [
          {
            "directory": "diffusion_models",
            "name": "z_image_turbo_bf16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors"
          }
        ],
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.3.73"
      },
      "size": [
        460,
        110
      ],
      "type": "UNETLoader",
      "widgets_values": [
        "z_image_turbo_bf16.safetensors",
        "default"
      ]
    },
    {
      "flags": {},
      "id": 65,
      "inputs": [
        {
          "link": 65,
          "name": "on_false",
          "type": "STRING"
        },
        {
          "link": 66,
          "name": "on_true",
          "type": "STRING"
        },
        {
          "link": 64,
          "name": "switch",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch"
          }
        }
      ],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [
            68
          ],
          "name": "output",
          "type": "STRING"
        }
      ],
      "pos": [
        -1110,
        3140
      ],
      "properties": {
        "Node name for S&R": "ComfySwitchNode",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        270,
        130
      ],
      "title": "Prompt Switch (CLIP)",
      "type": "ComfySwitchNode",
      "widgets_values": [
        true
      ]
    },
    {
      "flags": {},
      "id": 67,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            65
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -1970,
        2990
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        400,
        200
      ],
      "title": "Prompt - No LoRA",
      "type": "PrimitiveStringMultiline",
      "widgets_values": [
        "a 27 year old man wearing a baseball uniform, smiling at the camera and holding a bat"
      ]
    },
    {
      "flags": {},
      "id": 68,
      "inputs": [],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            66
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -1970,
        3240
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        400,
        200
      ],
      "title": "Prompt - With LoRA Trigger",
      "type": "PrimitiveStringMultiline",
      "widgets_values": [
        "90s_melancholy, retro, a 27 year old man wearing a baseball uniform, smiling at the camera and holding a bat"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 66,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [
        {
          "links": [
            63,
            64
          ],
          "name": "BOOLEAN",
          "type": "BOOLEAN"
        }
      ],
      "pos": [
        -1480,
        2920
      ],
      "properties": {
        "Node name for S&R": "PrimitiveBoolean",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        270,
        100
      ],
      "title": "LoRA Switch",
      "type": "PrimitiveBoolean",
      "widgets_values": [
        true
      ]
    },
    {
      "flags": {},
      "id": 61,
      "inputs": [
        {
          "link": 58,
          "name": "on_false",
          "type": "MODEL"
        },
        {
          "link": 59,
          "name": "on_true",
          "type": "MODEL"
        },
        {
          "link": 63,
          "name": "switch",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch"
          }
        }
      ],
      "mode": 0,
      "order": 14,
      "outputs": [
        {
          "links": [
            62
          ],
          "name": "output",
          "type": "MODEL"
        }
      ],
      "pos": [
        -1120,
        2710
      ],
      "properties": {
        "Node name for S&R": "ComfySwitchNode",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        270,
        130
      ],
      "title": "Model Switch (MODEL)",
      "type": "ComfySwitchNode",
      "widgets_values": [
        true
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 69,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [],
      "pos": [
        -2860,
        2100
      ],
      "properties": {},
      "size": [
        790,
        1040
      ],
      "type": "MarkdownNote",
      "widgets_values": [
        "# ComfyUI Switch Node\n\nRoutes between two inputs via a boolean toggle. **OFF → `on_false`, ON → `on_true`.**\n\n| Pin | Role |\n|---|---|\n| `on_false` | Output when switch is OFF |\n| `on_true` | Output when switch is ON |\n| `switch` | Boolean toggle |\n| `output` | Selected value |\n\n---\n\n## Example 1 — String Switch\n\n```\nString(\"true\")  → on_false ┐\n                            Switch [OFF] → \"true\"\nString(\"false\") → on_true  ┘\n```\n\nThe pin name describes *which state picks it*, not what the value is.\n\n---\n\n## Example 2 — LoRA Toggle\n\nA single **LoRA Switch** boolean drives two switches in sync:\n\n| LoRA Switch | Model | Prompt |\n|---|---|---|\n| OFF | Base model | `\"a person smiling\"` |\n| ON | Base + LoRA | `\"3d stylized style, a person smiling\"` |\n\nOne toggle flips both the model and its trigger-word prompt together — clean A/B testing with no manual rewiring.\n\n---\n\n## Key Takeaways\n\n- **Works with any type** — STRING, MODEL, CLIP, IMAGE, etc. ComfyUI infers it from the connection.\n- **No mixing types** — both pins must carry the same data type or the workflow breaks.\n- **One boolean, many switches** — wire a single toggle to multiple Switch nodes to keep everything in sync.\n- Always include the **LoRA trigger word** in your `on_true` prompt or the LoRA effect will be weak."
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 71,
      "inputs": [],
      "mode": 0,
      "order": 5,
      "outputs": [],
      "pos": [
        -2850,
        3210
      ],
      "properties": {},
      "size": [
        780,
        590
      ],
      "title": "Mdode Links",
      "type": "MarkdownNote",
      "widgets_values": [
        "## Model Links (for Local Users)\n\n**loras**\n\n- [zimage-90_s_anime_melancholy.safetensors](https://civitai.com/api/download/models/2484513)\n\n**diffusion_models**\n\n- [z_image_turbo_bf16.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors)\n\n**text_encoders**\n\n- [qwen_3_4b.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors)\n\n**vae**\n\n- [ae.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 loras/\n│   │   └── zimage-90_s_anime_melancholy.safetensors\n│   ├── 📂 diffusion_models/\n│   │   └── z_image_turbo_bf16.safetensors\n│   ├── 📂 text_encoders/\n│   │   └── qwen_3_4b.safetensors\n│   └── 📂 vae/\n│       └── ae.safetensors\n```"
      ]
    },
    {
      "flags": {},
      "id": 64,
      "inputs": [
        {
          "link": 62,
          "name": "model",
          "type": "MODEL"
        },
        {
          "link": 68,
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          }
        }
      ],
      "mode": 0,
      "order": 17,
      "outputs": [
        {
          "links": [
            61
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        -790,
        2710
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "proxyWidgets": [
          [
            "56",
            "text"
          ],
          [
            "52",
            "clip_name"
          ],
          [
            "53",
            "vae_name"
          ],
          [
            "58",
            "seed"
          ]
        ],
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        300,
        500
      ],
      "type": "0f79b7f9-d214-4587-b475-bc429519b976",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 2,
      "inputs": [],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            71
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -2020,
        2310
      ],
      "properties": {
        "Node name for S&R": "PrimitiveString",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        210,
        110
      ],
      "type": "PrimitiveString",
      "widgets_values": [
        "true"
      ]
    },
    {
      "flags": {},
      "id": 3,
      "inputs": [],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "links": [
            70
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -2020,
        2160
      ],
      "properties": {
        "Node name for S&R": "PrimitiveString",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        210,
        110
      ],
      "type": "PrimitiveString",
      "widgets_values": [
        "false"
      ]
    },
    {
      "flags": {},
      "id": 6,
      "inputs": [],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            72
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -1100,
        2320
      ],
      "properties": {
        "Node name for S&R": "PrimitiveString",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        220,
        100
      ],
      "type": "PrimitiveString",
      "widgets_values": [
        "true"
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 1,
      "inputs": [
        {
          "link": 70,
          "name": "on_false",
          "type": "STRING"
        },
        {
          "link": 71,
          "name": "on_true",
          "type": "STRING"
        }
      ],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": [
            3
          ],
          "name": "output",
          "type": "STRING"
        }
      ],
      "pos": [
        -1760,
        2160
      ],
      "properties": {
        "Node name for S&R": "ComfySwitchNode",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        270,
        130
      ],
      "type": "ComfySwitchNode",
      "widgets_values": [
        false
      ]
    },
    {
      "flags": {},
      "id": 4,
      "inputs": [
        {
          "link": 3,
          "name": "source",
          "type": "*"
        }
      ],
      "mode": 0,
      "order": 15,
      "outputs": [],
      "pos": [
        -1450,
        2160
      ],
      "properties": {
        "Node name for S&R": "PreviewAny",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        280,
        210
      ],
      "type": "PreviewAny",
      "widgets_values": [
        null,
        null,
        null
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 5,
      "inputs": [
        {
          "link": 73,
          "name": "on_false",
          "type": "STRING"
        },
        {
          "link": 72,
          "name": "on_true",
          "type": "STRING"
        }
      ],
      "mode": 0,
      "order": 13,
      "outputs": [
        {
          "links": [
            6
          ],
          "name": "output",
          "type": "STRING"
        }
      ],
      "pos": [
        -810,
        2160
      ],
      "properties": {
        "Node name for S&R": "ComfySwitchNode",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        270,
        130
      ],
      "type": "ComfySwitchNode",
      "widgets_values": [
        true
      ]
    },
    {
      "flags": {},
      "id": 7,
      "inputs": [],
      "mode": 0,
      "order": 9,
      "outputs": [
        {
          "links": [
            73
          ],
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -1100,
        2160
      ],
      "properties": {
        "Node name for S&R": "PrimitiveString",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        220,
        100
      ],
      "type": "PrimitiveString",
      "widgets_values": [
        "false"
      ]
    },
    {
      "flags": {},
      "id": 8,
      "inputs": [
        {
          "link": 6,
          "name": "source",
          "type": "*"
        }
      ],
      "mode": 0,
      "order": 16,
      "outputs": [],
      "pos": [
        -480,
        2160
      ],
      "properties": {
        "Node name for S&R": "PreviewAny",
        "cnr_id": "comfy-core",
        "enableTabs": false,
        "hasSecondTab": false,
        "secondTabOffset": 80,
        "secondTabText": "Send Back",
        "secondTabWidth": 65,
        "tabWidth": 65,
        "tabXOffset": 10,
        "ver": "0.18.1"
      },
      "size": [
        280,
        210
      ],
      "type": "PreviewAny",
      "widgets_values": [
        null,
        null,
        null
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}