Switch Node
Guide on how Switch Nodes work, simple Text Switch and LoRA Switch
About
This tutorial workflow demonstrates how to use ComfyUI's ComfySwitchNode to route between two inputs with a simple boolean toggle. It includes two focused examples: Example 1 - String Selection shows how to switch between two prompt strings using PrimitiveString and PrimitiveStringMultiline, previewing the active choice with PreviewAny. Example 2 - LoRA Switch shows how to toggle a LoRA on and off around a base model: UNETLoader loads Z-Image-Turbo, LoraLoaderModelOnly applies a selected LoRA, and a ComfySwitchNode chooses either the plain UNet (on_false) or the LoRA-modified UNet (on_true) to feed the generation node.
What you provide
- Reading the workflow
Runs in ComfyUI. This workflow can't run on this page. Open it in Comfy Cloud with everything loaded, or download it for your own ComfyUI.
Try in CloudQuestions & answers
The boolean switch pin controls routing: OFF (false) forwards on_false; ON (true) forwards on_true. Both inputs must be compatible types (e.g., both strings or both UNet models).
No. UNETLoader holds the base Z-Image-Turbo model. LoraLoaderModelOnly applies the LoRA when that path is active. Toggle the switch and re-queue to recompute with or without the LoRA.
Yes. Chain multiple ComfySwitchNodes (e.g., first selects A vs B, second selects that result vs C). Keep data types consistent across all switch branches.
Use the same prompt and a fixed seed in your generation node, change only one variable at a time (prompt OR LoRA), and save outputs with SaveImage for side-by-side review.
Related workflows
- Z-Image-Turbo
1.1 Starter - Text to Image
- Z-Image-Turbo
2.1 Creator - Diffusion Basics
- Z-Image-Turbo
2.2 Creator - Diffusion Guidance
- Z-Image-Turbo
2.3 Creator: Image Upscale & Analysis
- Wan2.2, Z-Image-Turbo
AIrt MAchIne
- Google Gemini, Kling 3.0, Z-Image-Turbo
AIrt MAchIne (API version)
- Z-Image-Turbo
Batch Process Text Prompts From List
- Grok, Z-Image-Turbo
Generate Realistic Variations
- Kling 2.6, Nano Banana Pro, Z-Image-Turbo
Image to Video
- Z-Image-Turbo
Image Upscale: Z-Image-Turbo 2K
- Z-Image-Turbo
Prompt Multi Batch Generation
- Grok, Z-Image-Turbo
Realistic 2k Images - Quick Variations