ComfyUI Node Runs on cloud

And

One gate for every condition you're testing

By Comfy-Org·Created 4 years ago·Updated 20 days ago· 121,575
And
  • values
  • BOOLEAN

ComfyUI workflows turn into stacks of toggles fast: upscale on/off, ControlNet on/off, face detail on/off. And is the node that lets you say "run the fancy path only when all of these are on" instead of wiring each toggle into separate if/else branches. One boolean out, ready to feed a Switch.

It's core's answer to "I have three conditions and I want them to behave as one." And gives you exactly one output: true if every input is truthy.

How it works

The node does Python's all() over its inputs and returns a BOOLEAN. Straightforward - but the inputs are what's interesting. The single values slot is an autogrow input: you can add as many value connections as you want, from two to ten to twenty. It's built for the "pile up the conditions" use case, not for two fixed slots.

The description says it plainly and it's worth actually believing: it uses Python's rules for truthiness. That means non-boolean things have opinions. An empty string is falsy, a non-empty string is truthy. 0 is falsy, 0.0 is falsy, an empty list is falsy, None is falsy. Everything else is truthy. So a "1" typed as text is truthy, but the number 1 is also truthy - and the number 0 is not. If you're wiring string widgets in, that distinction will bite you eventually.

The inputs and outputs that matter

  • values (any type, autogrow) - add as many as you need. Each one just has to be truthy for the output to be true.
  • BOOLEAN output - true when all values are truthy, false otherwise. Wire it straight into the switch input of an If/Else Switch to gate a whole branch.

How you get it

Ships with ComfyUI core, part of the utilities/logic category that landed in early 2026. Nothing to install, but it's recent - if your ComfyUI doesn't show it, update.

Common issues

"My switch never fires even though the toggles look on." One of your wired values isn't what you think it is. This is where truthiness gets people: a comparison that outputs a string "false" is truthy because it's a non-empty string. Check what's actually coming into each value input - the node only lies if you feed it lies.

"Why do I need this at all?" If you only have one condition, you don't. And earns its keep at two-plus: it collapses a fan of toggles into a single wire, which keeps a control panel readable and gives the If/Else Switch one clean input instead of a jungle of connections. That's the whole job - it generates nothing, it just makes the graph legible.

Categoryutilities/logic

Inputs (1)

NameTypeDefaultDescription
valuesCOMFY_AUTOGROW_V3

Outputs (1)

NameTypeDescription
BOOLEANBOOLEAN