๐๐ Text Switch On/Off
Mute a text branch instead of unplugging it
- STRING
If you build workflows iteratively - which is basically everyone - you know the annoyance of wanting to temporarily disable one text input without physically unplugging it and losing the wiring. This node is the fix: it sits inline in a text pipeline and gives you a toggle. Flip it off and the node turns red and stops passing its text through; flip it back on and it resumes, with the connection never actually broken in the graph.
How it works
Feed it a STRING and it either passes that text along or doesn't, based on the switch boolean. That alone is useful for quickly A/B-testing whether a piece of prompt text matters, or temporarily silencing a branch you're not ready to test yet without tearing up your node layout. The more specific trick is ONLY_ME_combine_text, which only matters if this switch feeds into the pack's Combine Texts node. Turn that flag on and, instead of just muting its own contribution, this switch tells Combine Texts to use only its text and ignore every other input wired into that combine node - a quick way to solo one branch of a complex prompt-assembly graph without disconnecting anything else feeding into it. The node visually shows blue when it's in that solo state, so you can tell it apart from a plain off (red) at a glance.
The inputs and outputs that matter
STRING(required) - the text this switch controls.switch(BOOLEAN, default true) - on passes the text through, off silences it.ONLY_ME_combine_text(BOOLEAN, default false) - when paired with a downstream Combine Texts node, forces that combine node to use only this switch's text and ignore its other inputs.- Output:
STRING- whatever text made it through, or nothing if switched off.
How to install it
Via ComfyUI Manager: search Bjornulf_custom_nodes, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/justUmen/Bjornulf_custom_nodes
cd Bjornulf_custom_nodes && pip install -r requirements.txt
then restart ComfyUI. Plain logic node, no special dependency of its own - you're installing the shared pack requirements.txt regardless since it's all one repo.
Common issues & troubleshooting
Downstream node errors on an empty string when switched off. Some nodes further down your chain may not handle an empty or missing text gracefully. If flipping this switch off throws an error elsewhere in the graph rather than just producing a blank result, that's the downstream node's handling, not a bug in the switch itself - check what it does with empty input.
ONLY_ME_combine_text doesn't seem to do anything. That flag only has an effect if this switch's output is actually wired into the pack's Combine Texts node specifically. If you're feeding the switch into something else, the flag is inert.
Multiple switches with ONLY_ME_combine_text enabled at once. If more than one switch feeding the same Combine Texts node has that flag on, you're asking for conflicting "solo" instructions. Keep it enabled on at most one switch at a time per combine node if you want predictable behavior.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| STRING | STRING | โ | |
| switch | BOOLEAN | true | โ |
| ONLY_ME_combine_text | BOOLEAN | false | โ |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | โ |