all
All — the list node that turns an AND gate into one input
- list
- BOOLEAN
The all node answers one question: is every element in this LIST truthy? Feed it a list, get back a single True or False. It's the "AND over a whole list" operation - the batch version of chaining a dozen boolean and nodes together, minus the spaghetti.
How it works
Under the hood it's literally Python's built-in all():
return (all(list),)
An element counts as "true" if it's truthy in the Python sense - non-zero numbers, non-empty strings, actual True values. Anything that's 0, "", None, False, or an empty collection is falsy and makes the whole result False.
The one behavior that trips people up: an empty list returns True. That's the standard Python semantics - "all zero of these things are true" is vacuously true - and it's exactly what the node's own description warns about. If you feed in an empty list expecting False, you'll get True and your conditional routing will silently flip. The sibling any node has the opposite behavior, so it's easy to reach for the wrong one.
Where you'd use it
- Validation gates. Check that every item in a batch passed some test, then only proceed if
allreturnsTrue. - Batch conditionals. Build a LIST of booleans (say with
create LIST from BOOLEANs) where each boolean is "this frame passed the NSFW filter," thenallgives you "the whole batch is clean." - Early-abort logic. Combined with the pack's
if/elseordisable flownodes,allis the clean way to say "if everything is ready, run; otherwise stop."
Installing
Part of the "Basic data handling" pack by StableLlama. ComfyUI Manager: search "Basic data handling", install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/StableLlama/ComfyUI-basic_data_handling
Restart and you're done. No extra dependencies, no model files - the pack is pure Python wrappers around built-ins, so this install is about as safe as custom-node installs get.
Gotchas worth knowing
- Empty list →
True. If that surprises you, guard it with aListLengthcheck first. - This works on a LIST (the pack's single Python-list variable), not a native ComfyUI data list. If you're holding a native data list, convert it to a LIST first before wiring it in.
- Truthiness can bite: the string
"0"is truthy even though the number0isn't. If you're testing values that could be either, be deliberate about what you put in the list.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| list | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |