Switch Node

Guide on how Switch Nodes work, simple Text Switch and LoRA Switch

简介

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.

你需要提供

  • 正在读取工作流

在 ComfyUI 中运行。 此工作流无法在本页面运行。你可以在 Comfy Cloud 中打开(已预先加载所需内容),或下载后在自己的 ComfyUI 中使用。

在 Cloud 中试用
输出
示例Sample output
Sample output

常见问答