Text 2 Inputs Or 3rd Option Instead (Mikey)
Text 2 Inputs Or 3rd Option Instead (Mikey) — ComfyUI Node
- text_a
- text_b
The name is clunky but it tells you exactly what the node does, which is more than you can say for most. This is a two-way switch for text: normally it just passes your text_a and text_b straight through to two separate outputs, but flip one toggle and both outputs get overridden by a third string instead.
Why you'd want this
Picture a graph where text_a and text_b feed your positive and negative CLIP Text Encode nodes, wired up through a chain of other processing nodes upstream. Now you want to quickly test what happens if you swap in one shared override prompt for both - a debug string, a "just show me a plain image" fallback, a quick sanity check that your sampler settings aren't the problem. Without this node, that means unplugging two wires and plugging in something else, then plugging them back when you're done. With it, you flip use_text_c_for_both and both downstream outputs switch to text_c - no rewiring, and it's trivially reversible.
It's a small node, but it's the kind of thing that saves real time in a workflow you're actively iterating on, where you're constantly asking "is this the prompt's fault or something else's."
Inputs and outputs
text_a,text_b- your two normal text values, each multiline, each defaulting to placeholder text ("Text A" / "Text B") until you fill them in.text_c- the override text, only used when the toggle below is on.use_text_c_for_both-false(default) passestext_aandtext_bthrough unchanged;trueroutestext_cto both outputs instead, ignoringtext_aandtext_bentirely.
Outputs are just text_a and text_b - same names as the inputs, which makes it easy to drop this node in the middle of an existing wire without renaming anything downstream.
Installing it
Through ComfyUI Manager, search "Mikey Nodes." Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/bash-j/mikey_nodes
Restart ComfyUI. No dependencies or downloads specific to this node - it's pure logic, no models involved.
Things to watch for
The most common way to get confused by this node is forgetting it's in the graph at all - you edit text_a or text_b, requeue, and nothing changes, because use_text_c_for_both got left on from an earlier test. If your outputs seem stuck no matter what you type into the "real" fields, check that toggle first before you start suspecting something further downstream.
Also worth knowing: it only overrides both outputs at once, or neither. There's no option to override just one side while leaving the other on its normal input - if you need that kind of asymmetric control, you'll need a plain switch node from elsewhere in your node set, or just unplug the one wire you actually want to change.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| text_a | STRING | Text A | — |
| text_b | STRING | Text B | — |
| text_c | STRING | Text C | — |
| use_text_c_for_both | COMBO | false | 2 options: true, false |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| text_a | STRING | — |
| text_b | STRING | — |