ComfyUI Node

Eight Input Text Switch

The live Eight Input Text Switch β€” prompt variants on a slider that you can actually see

By tusharbhuttΒ·Created 3 years agoΒ·Updated about a year agoΒ· 68
Eight Input Text Switch
    • STRING
    β—„switch1β–Ί
    β—„text1β–Ί
    β—„text2β–Ί
    β—„text3β–Ί
    β—„text4β–Ί
    β—„text5β–Ί
    β—„text6β–Ί
    β—„text7β–Ί
    β—„text8β–Ί

    You know the workflow: you're tuning one prompt against another, and every test means dragging a wire to a different text encoder. The Eight Input Text Switch from the Endless-Nodes pack kills that ritual. Eight text slots, one switch widget, and whatever slot you select is what comes out. Change the number, re-queue, compare. It's the pack's current, maintained take on a text switch - and unlike the older ESS-prefixed version, this one is actually in the pack today.

    The neat part: this is an output node, so it displays the selected text right on the canvas. That's more useful than it sounds. You can watch the switch swap prompts under you and confirm slot 6 is really what you think it is before the sampler burns twenty seconds on it.

    How it works

    Mechanically it's a list index. switch picks a value between 1 and 8, and the node returns text[switch - 1] as its single STRING output. If the slider's somehow out of range it returns an empty string instead of erroring.

    The inputs that matter:

    • switch - INT widget, 1–8, default 1. This is the only required input, and it's a typed-in field rather than a slider.
    • text1 through text8 - STRING, all optional with an empty-string default. You can type right into them or wire them from other text nodes.

    Output: one STRING socket. Feed it into a CLIP Text Encode, a Conditioning Combine, or anything text-flavored.

    One gotcha worth knowing: every slot defaults to empty, so if you bump the switch onto a slot you never filled, you silently get an empty string. Downstream prompt encoders generally tolerate that (you'll just generate whatever an empty prompt does), but it's the kind of quiet failure that wastes a queue run. Keep your used slots filled.

    Installing it

    This is the current pack, so the standard install works cleanly:

    • ComfyUI Manager β†’ Install Custom Nodes β†’ search "Endless" or "Endless-Nodes".
    • Or clone it in:
    cd ComfyUI/custom_nodes
    git clone https://github.com/tusharbhutt/Endless-Nodes
    

    Restart ComfyUI and look under the "Endless 🌊✨" menu. The pack declares no pip dependencies at the top level, so there's nothing extra to install.

    The honest caveat

    This node is the rebuilt replacement for the legacy β™ΎοΈπŸŒŠβœ¨ Eight Input Text Switch (ESS Eight Input Text Switch) that got dropped in the pack's June 2025 rewrite. If you're here from an old workflow that references the ESS class, this is the one you actually want to wire in instead - same idea, current code, and it'll show up in a fresh install.

    The author, tusharbhutt, is a hobbyist who says plainly the nodes are built for himself, may or may not be maintained, and shouldn't be used for content that violates Stability or Black Forest Labs usage policies. For a text switch that means: it's simple enough that trust isn't really a factor, and it does exactly what it says on the box.

    CategoryEndless 🌊✨/Text Switches

    Inputs (9)

    NameTypeDefaultDescription
    switchINT11–8β€”
    text1optSTRINGβ€”
    text2optSTRINGβ€”
    text3optSTRINGβ€”
    text4optSTRINGβ€”
    text5optSTRINGβ€”
    text6optSTRINGβ€”
    text7optSTRINGβ€”
    text8optSTRINGβ€”

    Outputs (1)

    NameTypeDescription
    STRINGSTRINGβ€”