None to False
A tiny converter for one very specific ComfyUI headache
- any
- is_not_none
A node that didn't run this pass - a skipped branch, an optional output nobody connected, a conditional path that took the other fork - hands whatever's downstream of it None instead of a real value. A lot of nodes, especially anything expecting a plain boolean, don't handle None gracefully; they choke on it instead of treating it as a sensible "off." None to False exists purely to fix that one specific mismatch.
How it works
Wire literally anything into any - it accepts every ComfyUI type, since the whole point is catching values before you know what they'll be. The output, is_not_none, comes back True if you handed it a real value and False if you handed it None. Read the name and the output together and it clicks: when the input genuinely is None, is_not_none is False - that's the "None to False" conversion the display name promises, just expressed as a boolean describing whether a value showed up at all, not a transformation of the value itself.
The inputs and outputs that matter
any(*) - anything at all. Required.
Output: is_not_none (BOOLEAN) - False only when the input was None; True for everything else, regardless of what that "everything else" actually is.
This node is also flagged as an output node, which just means it'll execute and display its result even with nothing wired to is_not_none downstream - handy for a quick sanity check on what an upstream node actually produced while you're debugging.
Where it fits
Drop this in front of anywhere in your graph that expects a genuine boolean but is fed by something that might legitimately not have run - a conditional branch, an optional tool output, a node behind a switch. Rather than that downstream node erroring or behaving unpredictably on None, you get a real True/False to gate on.
How to install it
Ships with the full pack, no separate download:
- ComfyUI Manager: search "comfyui_LLM_party", install, restart.
- Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/heshengtao/comfyui_LLM_party, thenpip install -r requirements.txtfrom inside the pack folder using ComfyUI's own Python, then restart.
Pure logic, no external dependency, no API call, nothing GPU-related - one of the lightest nodes in the whole pack.
Common issues & troubleshooting
Expecting it to produce a usable default value, not just a boolean. This node doesn't turn a missing STRING into an empty string, or a missing IMAGE into a blank one - it only ever produces a True/False describing whether something arrived. If you need an actual type-preserving fallback value, this isn't that node; you're looking for a default/fallback node specific to the type you're working with.
Output is always True even when you expected None. Double-check the upstream node genuinely didn't run this pass, versus running and producing an empty string, a zero, or an empty list - none of those are None, and this node will correctly call all of them "not none," which can look surprising if you were expecting it to catch "falsy" values generally rather than the specific None case.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| any | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| is_not_none | BOOLEAN | — |