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

Bool Binary And JK๐Ÿ‰

Boolean AND without leaving your graph

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

    ComfyUI lets you wire boolean outputs into toggles - a condition node's result can flip a switch elsewhere in the graph. But the moment you have two conditions that both need to be true, you're stuck either hand-editing a control or duplicating logic. Bool Binary And JK is the two-input a AND b gate from JakeUpgrade that exists precisely for that job.

    What it is

    Two inputs, a and b (both BOOLEAN, default false), one output (BOOLEAN), which is a and b. That's the entire node - no operator dropdown, no extra knobs. It was added in JakeUpgrade v1.8.0 explicitly "for workflows need to be group," and it's the simple dedicated counterpart to the more general CM_BoolBinaryOperation node. If you've built a graph where "upscale is enabled and a face is detected" should gate a detail pass, this is the merge point.

    The classic pattern: feed one boolean from a condition node (say an Int/Float condition from this same pack) and another from a toggle or another condition, then wire the output into whatever node takes a BOOLEAN input - a switch, a mask, a Queue gate. Because the output is a plain boolean, you can also chain gates: AND two results, feed that into a third AND, and you've got a clean multi-condition requirement without nested ifs anywhere.

    Installing it

    Part of ComfyUI-JakeUpgrade:

    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
    

    ComfyUI Manager โ†’ search "JakeUpgrade" โ†’ install โ†’ restart. No models, no downloads - it's a pure Python gate.

    Gotchas

    • This is logical AND, not bitwise. If you reach for CM_IntBinaryOperation later, its "And" is & on integers - a different beast. The dedicated Bool And/Or nodes are the logic gates.
    • A wired boolean beats a static toggle. If you're just setting a toggle to true, you don't need this node; it earns its place when at least one input is computed.
    • Manager's IPAdapter_plus conflict warning about this pack is a false positive from the replacement/ folder - ignore it.
    • ComfyUI-MultiGPU conflicts with recent ComfyUI and causes CUDA errors; the README tells you to disable it.
    Category๐Ÿ‰ JK/โœ–๏ธ Math/๐Ÿฅข Bool

    Inputs (2)

    NameTypeDefaultDescription
    aBOOLEANfalseFirst boolean input
    bBOOLEANfalseSecond boolean input

    Outputs (1)

    NameTypeDescription
    BOOLEANBOOLEANโ€”