Nodes/ComfyUI-JakeUpgrade/Bool Binary OR JK๐Ÿ‰
ComfyUI Node

Bool Binary OR JK๐Ÿ‰

Boolean OR โ€” 'either path is active' as a single wire

By jakechaiยทCreated 2 years agoยทUpdated 3 months agoยท 146
Bool Binary OR JK๐Ÿ‰
    • BOOLEAN
    โ—„afalseโ–บ
    โ—„bfalseโ–บ

    Some gates are "both," some are "either." Bool Binary OR JK is the either: two boolean inputs, one output that's true when a or b is true. In a graph full of condition nodes and switches, that's the node you reach for when two separate paths should both trigger the same downstream behavior.

    Why it exists

    JakeUpgrade added dedicated Bool And and Bool OR nodes in v1.8.0, explicitly for grouping workflows - the general boolean-operation node existed but defaulted to OR, which confused people who assumed they were getting AND. The dedicated pair removes the ambiguity: this node does a or b, nothing else, no dropdown to mis-set.

    Real usage: you have a "detail pass" that should run when either a face was detected or a manual toggle is flipped. Wire the condition node's boolean into a, the toggle into b, and the output drives your switch. It also composes - OR two results together and AND the outcome with something else, and you've built the control logic for a graph without ever touching Python.

    Inputs are a and b (both BOOLEAN), output is BOOLEAN. That's the whole surface. If you need the full set of boolean operations - NAND, XOR, XNOR, equality - that's CM_BoolBinaryOperation over in the same menu; this node deliberately stays dumb.

    Installing it

    It ships inside ComfyUI-JakeUpgrade, so:

    cd ComfyUI/custom_nodes
    git clone https://github.com/jakechai/ComfyUI-JakeUpgrade
    cd ComfyUI-JakeUpgrade
    # Windows standalone: install.bat
    # or: python_embeded\python.exe -s -m pip install -r requirements.txt
    pip install -r requirements.txt   # non-Windows
    

    Or ComfyUI Manager, search "JakeUpgrade", install, restart. Zero dependencies beyond the pack itself and zero downloads.

    Gotchas

    • OR is inclusive. If you need "exactly one of the two" - an XOR - this node isn't it; use CM_BoolBinaryOperation and pick Xor.
    • Computed booleans only. Two static toggles don't need a gate. The node shines when at least one input comes from a condition node or another gate.
    • The IPAdapter_plus "conflict" in Manager is this pack's replacement/ folder tripping the checker - a false positive.
    • ComfyUI-MultiGPU causes CUDA errors with recent ComfyUI; disable it per the README.
    Category๐Ÿ‰ JK/โœ–๏ธ Math/๐Ÿฅข Bool

    Inputs (2)

    NameTypeDefaultDescription
    aBOOLEANfalseFirst boolean input
    bBOOLEANfalseSecond boolean input

    Outputs (1)

    NameTypeDescription
    BOOLEANBOOLEANโ€”