Text Switch (Creepybits)
A Text Router You'll Actually Use
- STRING
- show_help
Switch nodes are the traffic directors of a ComfyUI workflow - they let you swap one thing for another with a single click instead of unplugging and replugging noodles. This one routes text. Hook up to three different prompt strings, set an integer to 1, 2, or 3, and the matching string comes out the other side. It's the lazy person's way to A/B test prompts, flip between positive/negative variants, or switch workflow "modes" without rewiring anything.
It's one of the plain-vanilla switch nodes in the Creepybits suite, sitting alongside a model switch, a CLIP switch, and this pack's VAE switch. They all share the same design: an integer selector, three optional inputs, one passthrough output.
How it works
Dead simple, and the source proves it: Input == 1 returns text1, Input == 2 returns text2, and so on. Nothing cached, nothing clever. If you somehow pass a value outside 1–3 it returns None, which will make anything downstream that expects a string complain.
The second output, show_help, is worth knowing about because it's not help at all - it's a canned joke. The node returns a fixed "Proverb of the day" string there. It's the author having a bit of fun; you can ignore it or wire it to a display node for a laugh.
The inputs and outputs
- Input - integer 1 to 3, default 1. This is the knob you flip.
- text1 / text2 / text3 - the three strings to choose between (optional inputs).
- Outputs: STRING (the selected text) and show_help (the gag string).
Wire the first output into a CLIP text encode or a prompt-combine node.
Installing it
It's part of ComfyUI-Creepy_nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/Creepybits/ComfyUI-Creepy_nodes
restart, and it lands under Creepybits/Switches. Or install through ComfyUI Manager by searching "Creepy_nodes". No models, no extra dependencies worth mentioning.
Where it bites
The text inputs have no defaults, so if you select an input you haven't connected, you get an empty string - not an error. An empty prompt is a silent killer in image generation, so hook all three up before you start flipping. Beyond that, there's not much to trip on: it's a three-position text router. If you find yourself wanting more than three slots or a dropdown that reads from files, the community favorite rgthree-comfy has fancier prompt switching, but for a quick 1-2-3 toggle this does the job.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| Input | INT | 11–3 | — |
| text1opt | STRING | — | |
| text2opt | STRING | — | |
| text3opt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |
| show_help | STRING | — |