Nodes/ComfyUI-CRZnodes/CRZ Boolean Toggle
ComfyUI Node

CRZ Boolean Toggle

A real on/off switch for your dashboard, not a checkbox you have to hunt for

By CoreyCorza·Created 12 months ago·Updated 12 months ago· 42
CRZ Boolean Toggle
    • value
    valuefalse

    CRZ Boolean Toggle is the node people most often mean when they say the CRZ pack is "goated" - it's a proper animated on/off switch you can flip with one click, sitting right on the canvas instead of buried in a widget menu. In the pack's own words it's a dashboard node: something you put on a control panel so you can flip a setting without hunting through a node's internals. The output is a plain BOOLEAN, so it plugs into anything that wants a true/false - and more importantly, into the CRZ Switch and Execute Switch siblings that turn that boolean into routing decisions.

    Why you'd reach for it

    ComfyUI gives you a million ways to encode a conditional, and most of them are miserable. The classic pattern that people actually recommend in the community is exactly this: a toggle wired into a switch, so one click chooses between two inputs. When someone asked on r/comfyui how to get a clean switch that routes between two branches, the answer was "try CRZ Nodes... hook a toggle node into the switch node then add the things you want to switch between." That's the intended use of this node in one sentence.

    It's also just nicer than the stock boolean widgets. The pack draws its own UI in JavaScript - the toggle animates, the handle slides, and if you're building a workflow for someone who isn't a ComfyUI nerd (or for yourself when you're tired), a visible switch beats a text checkbox every time.

    How it works

    Under the hood it's embarrassingly simple: a BOOLEAN input widget with a default of false, and a pass-through that returns the value. The whole point is the presentation. The frontend hides the stock widget, draws the toggle track and handle, and marks the node so its connection wires are hidden by default - the README's whole design philosophy is that dashboard nodes should look clean, not like spaghetti. If you think the node is broken because there are no visible wires, it isn't: press alt+backtick to toggle link visibility.

    The output is value (BOOLEAN). One input, one output. Double-click the label text to rename it, so you can have "Hires", "Detailer", "NSFW filter" toggles instead of three anonymous "Boolean"s.

    Installing it

    It ships with ComfyUI-CRZnodes, so install the pack once and all these nodes appear together. ComfyUI Manager: search ComfyUI-CRZnodes and install, then restart. No requirements, no models - the README is explicit: "There are no requirements."

    cd ComfyUI/custom_nodes
    git clone https://github.com/CoreyCorza/ComfyUI-CRZnodes.git
    

    Restart and search the node menu for crz.

    What to wire it into

    • CRZ Switch - toggle between two data inputs (true input vs false input).
    • CRZ Execute Switch - route one input to the true or false output branch, and skip executing the dead branch entirely.
    • CRZ Execute Block - turn it into a kill switch that stops a whole downstream chain from running.
    • Any stock node with a BOOLEAN input, like a sampler's "return with leftover noise" or a mask node's invert flag.

    One caution: because the toggle output is strict BOOLEAN, don't expect to plug it into a * input that wants a float or int - some nodes accept anything, but the toggle will hand them True/False, which is only useful where a boolean is meaningful.

    CategoryCRZ

    Inputs (1)

    NameTypeDefaultDescription
    valueBOOLEANfalse

    Outputs (1)

    NameTypeDescription
    valueBOOLEAN