Six Input Text Switch
The Endless text switch that saves your sanity
- STRING
Prompt testing is a repeat-edit-render loop unless you automate the "pick which prompt" part. Six_Input_Text_Switch is the middle of Endless's text switch family - four, six, and eight input versions - and it's the one most people land on when they want more than a couple of options but don't need a whole panel. Six text inputs, a switch selector, one string out. Set the switch to 5, get text5. Done.
It's the plain variant (no βΎοΈπβ¨ branding; that's the newer ESS family). The README positions the whole switch family as "useful for multiple inputs for prompt creation," and that's really the use case: preload six prompts or prompt fragments once, then flip between them between runs instead of opening the node editor.
Inputs and outputs
switch- integer 1 to 6. The selector, and the only required input.text1β¦text6- all optional, empty by default. You only need one to make it useful; the rest are there when you want them.
Output: a single STRING - whatever text sits at the selected position. That feeds any downstream string input: a prompt node, a text encoder, a combiner, the Endless batch prompt nodes if you want to select which prompt list to render.
The node is registered as an output node, so it runs even if nothing is attached downstream - fine when you're using it for side-channel stuff like filenames.
The family difference
The six-input version is the sweet spot. Four feels cramped once you're juggling style variants; eight is overkill for most workflows and is the point where a proper randomizer or a parameter node starts making more sense. If you mainly A/B test, the four-input one is enough. If you're curating a set of prompts you'll cycle through for a while, six is the one that hits the balance.
Installing it
Part of Endless πβ¨ Nodes by tusharbhutt:
cd ComfyUI/custom_nodes
git clone https://github.com/tusharbhutt/Endless-Nodes
# restart ComfyUI
Or ComfyUI Manager β search "Endless" β install. No dependencies or downloads.
Gotchas
Out-of-range switch values return an empty string rather than erroring, so keep it 1-6. And one honest framing note: if all you want is a text switch, this pack is a big install for a small node - rgthree and several other quality-of-life packs have equivalent switches. Install Endless if you want the batch prompt nodes or Image Saver too; grab this one as a bonus, not a reason.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| switch | INT | 11β6 | β |
| text1opt | STRING | β | |
| text2opt | STRING | β | |
| text3opt | STRING | β | |
| text4opt | STRING | β | |
| text5opt | STRING | β | |
| text6opt | STRING | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | β |