flow_BooleanSwitch
A simple on/off gate for any wire
- any_input
- any_output
The pack doesn't ship a description for this one, so here's the honest read straight from its parameters: it's a gate. Wire anything into any_input, flip switch on or off, and it decides whether that thing keeps flowing to any_output. It's the kind of small utility node every workflow-organization pack ends up needing - rgthree-comfy's Fast Groups Muter and Bypasser solve a version of the same problem at the group level, this one does it at the single-wire level.
How it works
any_input and any_output are both wildcard-typed (*), meaning ComfyUI won't type-check what you plug in - an image, a string, a model, whatever. switch is the gate: on (the default) presumably lets the value through, off blocks it. The second parameter, store, is more interesting and less obvious - the name suggests the node caches ("stores") the last value that passed through, so that flipping switch off doesn't necessarily leave any_output empty; it can keep re-emitting the last known-good value instead of breaking anything downstream that expects a non-null input every run. That's a genuinely useful pattern for A/B-testing part of a graph without your whole pipeline erroring the moment you flip something off - but since the pack gives no written explanation of store, test it with something disposable first to confirm it behaves the way the name implies before you build a workflow around that assumption.
Inputs and output
- switch (BOOLEAN, default true) - the gate itself.
- store (BOOLEAN, default true) - likely controls whether the last value is cached and re-emitted when the gate is closed; unconfirmed by the pack's own docs, so verify it does what you expect.
- any_input (optional, wildcard) - what you're gating.
- any_output (wildcard) - what comes out the other side.
Installing it
Search ComfyUI-Apt_Preset in ComfyUI Manager and install, or manually: cd ComfyUI/custom_nodes && git clone https://github.com/cardenluo/ComfyUI-Apt_Preset.git, then restart ComfyUI. The README's own install step is "double-click install.bat" - Windows-first, with no requirements.txt visible for other platforms, so on Linux/Mac open that file to see what it pip-installs and do it yourself in your ComfyUI venv. This node is pure control flow, so it needs none of the pack's optional extras (GGUF, Advanced-ControlNet, nunchaku, downloaded models).
Common issues
Because both sockets are wildcard-typed, ComfyUI won't stop you from wiring mismatched things through it - plug a STRING into any_input and try to feed any_output into a node expecting an IMAGE, and you won't find out until the workflow actually runs and errors. Double-check your wiring by eye rather than trusting the graph to catch it.
Since neither the README nor the node's own metadata explains store in words, don't assume its exact caching behavior - run a small test graph, flip switch off, and watch what any_output actually does before relying on it in something important.
And the pack-wide note: this is one node in a large, actively developed package, and an import failure anywhere in the pack can take it offline too - if it's missing from your node list after install, check the ComfyUI console at startup for the real traceback.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| switch | BOOLEAN | true | — |
| store | BOOLEAN | true | — |
| any_inputopt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| any_output | * | — |