Nodes/ComfyUI-Creepy_nodes/Text Switch (Creepybits)
ComfyUI Node

Text Switch (Creepybits)

A Text Router You'll Actually Use

By Creepybits·Created about a year ago·Updated 2 months ago· 32
Text Switch (Creepybits)
    • STRING
    • show_help
    Input1
    text1
    text2
    text3

    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.

    CategoryCreepybits/Switches

    Inputs (4)

    NameTypeDefaultDescription
    InputINT11–3
    text1optSTRING
    text2optSTRING
    text3optSTRING

    Outputs (2)

    NameTypeDescription
    STRINGSTRING
    show_helpSTRING