Nodes/Tojioo Passthrough/Bool Passthrough (Widget)
ComfyUI Node

Bool Passthrough (Widget)

The bool passthrough with a checkbox you can actually flip

By Tojioo·Created 11 months ago·Updated 7 months ago· 13
Bool Passthrough (Widget)
    • boolean
    boolean

    Bool Passthrough (Widget) is the version of Tojioo's boolean passthrough that has a checkbox on the node. You flip it true or false by hand, and it hands whatever value it holds to the boolean output unchanged. No logic, no transform - just a visible, one-source true/false that the rest of your graph can read.

    That's more useful than it sounds. ComfyUI lets you convert a widget into an input socket, but a raw checkbox sitting on some distant node is hard to notice and easy to miss when you're hunting for why a branch switched off. Putting the toggle on its own named node makes the value visible at a glance, and - the genuinely nice part - you can still override it with a wire if you ever need to.

    How it works

    The mechanism is identical to its sibling Bool Passthrough: one optional BOOLEAN input named boolean, one boolean output, value passed through untouched. The difference is in how the input is declared. The plain PT_Bool forces the input to be a socket only - wire or nothing. This widget variant doesn't force the socket, so ComfyUI gives you a checkbox, and connecting a wire to the boolean input takes precedence over the widget value.

    That split is the real reason both nodes exist. Widget version when the value is a setting you change per run: you walk up, flip it, run. Wire-only version when the value is computed elsewhere in the graph: it can't silently disagree with a stale checkbox.

    Where you'd use it

    • A master "apply this pass" switch feeding several nodes from one source.
    • A visible constant for a subgraph - flip it at the edge instead of digging through the subgraph.
    • Anywhere you want a boolean the graph can see without hunting for the original widget.

    Install

    ComfyUI Manager → search "Tojioo Passthrough" → install, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Tojioo/tojioo_passthrough.git
    

    Restart. There are no pip dependencies or model downloads - the pack is a solo dev's lean collection of Python + a bundled frontend, so this is a seconds-long install.

    Common issues

    The usual stumble is grabbing the wrong variant: PT_Bool (no widget) when you wanted this one. If your node shows no checkbox, you've got the wire-only version - swap to the (Widget) node. And remember the override rule: once you connect a wire to boolean, the checkbox stops mattering, so a leftover connection can quietly override your toggle. Check for stray wires before you blame the node.

    CategoryTojioo Passthrough/Simple Passthrough/Widget Variants

    Inputs (1)

    NameTypeDefaultDescription
    booleanoptBOOLEAN

    Outputs (1)

    NameTypeDescription
    booleanBOOLEAN