Hypnodes On/Off (INT)
The simplest toggle in the pack, for when a node wants a 1 or 0
- INT
- BOOLEAN
This is the pack's token logic node, and calling it a "node" feels generous - it's a light switch with two wires. One toggle (on, a BOOLEAN, default on), two outputs:
- INT -
1when the switch is on,0when it's off. - BOOLEAN - the raw true/false, passed straight through.
That's the whole thing. No inputs besides the toggle, no settings, no failure modes. It exists because ComfyUI's own switch widgets only route values; when you need an actual 1-or-0 integer to drive something, you either wire up a primitive and fight with it, or you drop one of these in.
When it's actually useful
The BOOLEAN output is mostly redundant with what you can get elsewhere, but the INT side earns its keep. A few places a hard 1/0 integer genuinely helps:
- Feeding a math or comparison node that expects an INT gate rather than a boolean.
- Routing into samplers or schedulers that take an integer flag (like a disabled-noise toggle that wants
1for on). - Multiplying or summing as a conditional -
value * INTis a neat way to zero something out based on a switch.
It's also got a small quality-of-life detail: IS_CHANGED returns the toggle state, so flipping the switch marks the graph dirty and forces a re-run. No stale results because you forgot the switch isn't part of the execution cache.
The honest take
You're probably not going to build a workflow around this node, and that's fine - it's a utility. If you already run the full Hypnodes suite, grab it when you need a clean 1/0 and don't want to construct one from three other nodes. If you're not otherwise using the pack, any boolean-to-int converter or even a manually wired primitive does the same job; there's nothing magic here. It's the kind of node that's nicer to have than to shop for.
Install
ComfyUI Manager (search Hypnodes) or:
cd ComfyUI/custom_nodes
git clone https://github.com/hypnichorse/ComfyUI-Hypnodes
Restart ComfyUI. No model downloads, no dependencies beyond what ComfyUI already ships.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| on | BOOLEAN | true | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |
| BOOLEAN | BOOLEAN | — |