ComfyUI Node

Bool 🦾

The boolean primitive that reads like a light switch

By beyondprompting·Created 9 months ago·Updated 7 months ago· 0
Bool 🦾
    • BOOLEAN
    valuefalse

    Bool is the smallest useful node in this pack: one checkbox, one boolean output. It exists because a lot of nodes take a true/false flag, and sometimes that flag should be decided by one switch that several nodes share - a "quality mode" toggle that flips three behaviors at once, or a manual override that a Compare node's result can drive.

    It's the boolean sibling of the pack's Int and Float primitives, ported from the original ComfyUI-Logic extension. If you've seen those, you know exactly what this does.

    How it works

    value is a BOOLEAN (default false) and the node returns it unchanged as a BOOLEAN. That's the entire mechanism. The checkbox doubles as a socket input, so you can either flip it by hand or connect a real boolean from somewhere else - a Compare node, a switch, another conditional.

    The inputs that matter

    • value (required) - the toggle. Defaults to false, which trips people up more than you'd think.

    Output: BOOLEAN - the value, ready to feed any boolean socket.

    Install

    Ships with ComfyUI-Beyond_nodes. ComfyUI Manager → search "Beyond_nodes" → install → restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/beyondprompting/ComfyUI-Beyond_nodes
    

    Restart. No extra dependencies.

    Common issues

    • Nothing happens when I flip it. The node only passes the value along; it doesn't do anything itself. Trace where the output feeds - the effect happens downstream.
    • It defaults to off. If a fresh Bool in your workflow causes the "wrong" branch to run, that's the default false. Flip it or wire it.

    One honest note: ComfyUI's own nodes have boolean widgets that save you a node in most cases. This primitive pays off when a single boolean needs to drive several unrelated nodes - that's when one switch beats three checkboxes you'd otherwise have to remember to flip together.

    CategoryLogic

    Inputs (1)

    NameTypeDefaultDescription
    valueBOOLEANfalse

    Outputs (1)

    NameTypeDescription
    BOOLEANBOOLEAN