Vantage Images or None
A boolean gate for image batches — pass the images through or hand back nothing
- image
- IMAGE
Sometimes you want a branch that can be switched off entirely, and in ComfyUI "off" usually means "the wire is gone." This node is the alternative: a boolean-controlled gate that either passes your image batch straight through or returns None. Wire a toggle (or any node that produces a boolean) into it, and you can disable a whole downstream path without touching the graph.
The mental model is a valve. switch off → nothing comes out. switch on → the image flows through unchanged, identical to what went in. It's a tiny node, but it earns its place in workflows that toggle between "do the detail pass" and "skip it," or that conditionally feed reference images into an encoder depending on whether a control flag is set.
What it needs
- image - the image batch to pass through when the switch is on. Required, so you can't use this as a source of images - only as a gate on images that already exist somewhere.
- switch - a boolean. The tooltip describes the input as "Image(s) to return on true," which is the whole contract: true returns the image, false returns None.
One output: IMAGE, which is either the original batch or None. That None is the entire value of the node - downstream nodes that tolerate optional inputs will simply skip work, and nodes that demand an image will show you exactly where the chain broke.
Where it fits
It's the image-specific cousin of the pack's Switch Any (first non-None input) and the conditional pass-through nodes. Where those handle "pick from several," this handles "enable/disable." A common pattern: feed it from a checkpoint or sampler you may or may not want active per run, and drive the switch from a widget so you can flip behavior between runs without rebuilding anything.
One honest caveat: returning None can be a trap if your downstream node doesn't accept None and just silently does nothing with it. When you're debugging "nothing came out," check whether a gate further up is off - this node is a great place for that particular mystery to hide.
Install
Part of Vantage-Nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/vantagewithai/Vantage-Nodes.git
pip install -r requirements.txt
or ComfyUI Manager → search "Vantage-Nodes" → Install → restart.
Common issues
- Everything downstream is empty - the switch is off. That's the node working as designed; flip it or drive it from the right boolean source.
- "Why did my image change?" - it shouldn't. This node does no processing; pass-through is byte-for-byte. If the output differs, the change is happening elsewhere.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Image(s) to return on true | |
| switch | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |