✏️ Literal Bool
One True/False, wired to five places
- value
✏️ Literal Bool is about as simple as a ComfyUI node gets: one value input with a True/False toggle, one value BOOLEAN output, straight through. No logic, no state, no surprises.
So why does it exist? Because widgets and wires are different things. Right-click any boolean widget on any node and choose Convert widget to input, and you've got a socket where a toggle used to be. Now you need something to feed it - and that's this node. Wire one Literal Bool into three different enable inputs and they flip together, which is the entire point: one authoritative source instead of three toggles you have to remember to keep in sync.
That matters more than it sounds in a large graph. Same-value-in-multiple-places is the bug class ComfyUI's plumbing layer exists to fight, and a value node is the cure.
What it doesn't do
It doesn't bypass a branch. Setting a Literal Bool to False does nothing at all unless something downstream actually reads a boolean input - it's a data value, not a switch. If you want to mute a whole node, right-click and bypass it (Ctrl+B); if you want to route between two branches, you need a switch node, not this one. People do get these confused, and then wonder why flipping the toggle changes nothing.
When it's actually the right tool
Boolean inputs are less common than you'd hope in ComfyUI's ecosystem, which limits this node's usefulness somewhat. Where it earns its place:
- A node with an
enabledoruse_xboolean that several graph paths want set the same way. - Feeding a boolean into a logic or switch node - the A/B kind with a selector - so the whole graph's mode changes from one place.
- Making a boolean explicit in a workflow someone else has to read. A floating toggle is invisible; a
Literal Bool → enablewire is documentation.
One note for anyone who's been around a while: core ComfyUI now ships its own typed primitives (PrimitiveBoolean and friends), so you don't strictly need a custom node for this. The pack version is handy if you're already in the ⚡ MNeMiC Nodes category and want consistent naming, but it's not filling a gap the way it did in 2023.
Install
ComfyUI Manager → ComfyUI-mnemic-nodes, or:
cd ComfyUI/custom_nodes
git clone https://github.com/MNeMoNiCuZ/ComfyUI-mnemic-nodes
Restart. Two honest notes: this node itself is a single io.Boolean.Input and needs nothing, but the pack it arrives in pulls transformers, opencv-python, tiktoken, imageio and piexif at install time, because other nodes need them. Installing a whole utility pack for a checkbox is a bit silly - the trade is that once it's there, you have the rest of the bundle.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | BOOLEAN | false | Boolean value (True or False). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| value | BOOLEAN | The toggle value, passed straight through. |