Bool Unary Operation JK๐
A dedicated NOT gate, because the alternative is worse
- BOOLEAN
A node with exactly one operation looks like a joke until you need it. CM_BoolUnaryOperation is JakeUpgrade's boolean inverter: input a, output BOOLEAN, operation Not - that's it, not a. The point isn't the math, it's that inverting a boolean in ComfyUI otherwise means awkward contortions, and a one-option node you can read at a glance is the sane alternative.
Where you actually need an inverter
ComfyUI's condition nodes produce booleans with a particular polarity. The common frictions:
- A toggle that means "skip this" when the node you're driving expects "run this." One NOT inverts your intent instead of renaming everything.
- A condition node whose output is "is the mask empty," when you want "there is a mask."
- A guard that should fire on the absence of something - "no face detected" rather than "face detected."
Pattern: wire a condition node into a, take the BOOLEAN output into a switch or another gate. It chains cleanly with the pack's Bool And/OR nodes - not (a and b) and so on.
What you're not getting
No dropdown surprises (the op list has exactly one entry, Not), no hidden knobs. If you need a bitwise NOT on an integer - ~a, where ~0 = -1 - that lives in CM_IntUnaryOperation and it is not this. Different types, different semantics. For plain true/false logic, this is the one.
Installing it
Ships with 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
Or ComfyUI Manager, search "JakeUpgrade", install, restart. Nothing to download.
Gotchas
- Output polarity is worth a glance before you wire it. "Not" is famously easy to misread in a busy graph; label it or know that the output is the inverse.
- Manager's JakeUpgrade / IPAdapter_plus conflict warning is a false positive from the pack's
replacement/folder - the README confirms those files are never loaded. - ComfyUI-MultiGPU causes CUDA errors with recent ComfyUI; the README says disable it.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| op | COMBO | Select unary operation to perform | |
| a | BOOLEAN | false | Input boolean value |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | โ |