BOOLEAN
A true/false switch you can wire anywhere
- BOOLEAN
About as simple as a node gets: one checkbox, one output. JN_PrimitiveBoolean is JNComfy's (jn-jairo/jn_comfyui) basic true/false building block, and its whole purpose is being a clean, explicit BOOLEAN source you can wire into anything else in the pack that expects one - JN_Condition's condition input, JN_StopIf's condition input, or a comparison in JN_LogicOperation.
Why a dedicated node for this
You could get a boolean out of plenty of other nodes indirectly - a comparison, a math result coerced to truthy/falsy - but sometimes you just want a fixed switch you flip by hand on the canvas: enable/disable a branch, toggle a debug path, set a flag you'll reuse in several places. Having it as its own primitive node means it shows up as a first-class widget you can rename, group, and reuse, rather than a side effect of some other calculation.
The inputs and outputs that matter
value(BOOLEAN, defaultfalse) - the switch itself. That's the entire interface: check it or leave it unchecked.
Output is BOOLEAN, typed strictly (not the generic * wildcard some of this pack's other primitive nodes use) - so it plugs cleanly into anything that specifically wants a real boolean, no type coercion needed.
How to install it
Via ComfyUI Manager: search "JNComfy", install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/jn-jairo/jn_comfyui
then restart ComfyUI. This is a niche, single-author pack - there's no real community discussion of it we could find, and it isn't in our knowledge base - so treat it as a useful personal toolkit rather than something with a support community behind it. For a node this simple, that's fine; there's not much that can go wrong.
Common issues & troubleshooting
There's genuinely not a lot to troubleshoot on a checkbox node, but the couple of things worth knowing:
It doesn't accept a wired input. This is a source node - value is a widget you set by hand, not a socket you connect another node's output into. If you need a boolean that's computed from something else (a comparison, a math result), you want JN_LogicOperation or JN_BooleanOperation instead, not this one.
You want the reverse - read a boolean off of something else. If you've got a value from elsewhere that you need coerced into a proper BOOLEAN type, look at the "Primitive > Conversion" nodes in the same pack, specifically the to-boolean converter - this node only produces a boolean you set manually, it doesn't convert one.
Default is false, not true. Worth double-checking on a fresh node drop - if you expect a branch to be "on" by default, you'll need to flip the checkbox yourself; it doesn't start checked.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |