Bool
A plain on/off switch that speaks BOOLEAN
- BOOLEAN
Bool is a checkbox with a wire coming out of it. One input, one output, zero cleverness - and that's the entire point. You place it in your graph, flip it on or off, and it feeds a typed BOOLEAN into whatever logic node wants one. In a ComfyUI world where toggles are widgets stuck inside other nodes, this gives you a condition that lives in the open, where you can see it and wire it.
The mechanism is a straight pass-through: execute(self, value) returns (value,). The input is value, a BOOLEAN defaulting to False, and the output is a BOOLEAN. That's the whole circuit.
Why it exists
The pack's If node (If ANY return A else B-🔬) treats its ANY input as Python truthiness, so technically you could wire an integer or a string into it and let truthiness decide. That works, but it's fragile - an empty string or 0 is "false" in ways you'll forget at 2am. Bool is the honest version: a real on/off flag you toggle by hand, whose output type is literally BOOLEAN. Feed it into the If node's ANY, or into any downstream node that accepts a boolean input, and your workflow has a visible master switch.
Where it shines: the "do I apply the upscale pass this run?" or "publish or draft?" style of decision - the thing you want to change by clicking, not by editing a graph. Keep it near the top of the workflow where people (future you) can find it.
Install
Same as the rest of the pack. In ComfyUI Manager, search ComfyUI-Logic; or:
cd ComfyUI/custom_nodes
git clone https://github.com/theUpsider/ComfyUI-Logic
Then restart ComfyUI. No dependencies, no downloads - the whole pack is one Python file, so this installs in seconds. Worth knowing the repo is marked "currently not maintained" by its author, though for a node that does return (value,), there's not much left to maintain. If you're building a fresh workflow, ComfyUI core's own boolean handling may be all you need; this node exists to keep a whole logic graph in one consistent 🔬-branded pack.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |