ComfyUI Node

GoStopAnything01

A pass-through switch that actually cuts the wire

By mittimi·Created 2 years ago·Updated 6 months ago· 3
GoStopAnything01
  • AnyData
  • AnyData
GOtrue

GoStopAnything01 is a gate. You hand it any piece of data, flip a GO toggle, and it either passes the data through or - here's the thing - passes through nothing at all. It's one of three nodes in mittimi's ComfyUI_mittimiWidthHeight pack, and of the three it's the one that deserves a closer look, because the "stop" half works differently than people assume.

What it's for

ComfyUI already lets you bypass a node at edit time (Ctrl+B mutes it in the editor). GoStopAnything is for when you want that decision to happen at runtime, driven by data rather than your keyboard. Toggle GO by hand to flip a workflow stage on and off without editing the graph, or drive it from a primitive, a batch value, or a random number if you're feeling chaotic. Because the input is any type, you can gate almost anything - an image, a latent, a conditioning, a model reference, whatever you can get on a wire.

The honest framing: if you only ever change the switch while building the workflow, just use ComfyUI's built-in bypass and skip this pack. This node earns its keep when the toggle is part of the workflow's logic, not your editing session.

How it works

Read the source and the behavior is fully visible:

return_data = None
if GO:
    return_data = AnyData
return (return_data,)

GO (a BOOLEAN, default true) decides; AnyData is the pass-through payload; the output is the same AnyData when GO is on. The mechanism uses the * any-type trick, so ComfyUI lets any data type plug in without a connection error.

Here's the part that trips people up: when GO is off, the node returns Python None, not "the previous value" and not "the wire disconnected." ComfyUI shoves that None down the wire to whatever's next. A node that can handle a missing input will just skip; a node that assumes it always receives real data will error or misbehave. It's a gate that cuts the wire, not one that holds it in a neutral state. If your downstream node chokes, the fix is to put a conditional in front of it, or remember this is a hard stop.

Inputs and outputs

  • GO (BOOLEAN, default true) - the switch. True passes data, false outputs None.
  • AnyData (any type) - whatever you're gating.
  • Output AnyData - feed it into whatever consumed the original data.

That's the complete API. Two inputs, one output, no configuration to fumble.

Install

Same story as the rest of the pack: zero dependencies, no model files, no pip step. ComfyUI Manager, search mittimi / ComfyUI_mittimiWidthHeight, install, restart. Or by hand:

cd ComfyUI/custom_nodes
git clone https://github.com/mittimi/ComfyUI_mittimiWidthHeight

You'll find it under mittimiTools after restarting.

Gotchas

  • Off = None, not "skip gracefully." Test your downstream node with GO off before you trust it in a workflow.
  • Since ComfyUI caches node results, flipping GO forces the downstream chain to re-execute - which is usually exactly what you want from a runtime toggle, but it can surprise you if you expect an instant no-op.
  • The author is a self-described hobbyist; the code is a few lines and it works, but don't expect battle-tested edge-case handling.

It's a micro-node with a sharp edge. Use it where the toggle is part of the graph's logic, and it's the cleanest little switch in the pack.

CategorymittimiTools

Inputs (2)

NameTypeDefaultDescription
GOBOOLEANtrue
AnyData*

Outputs (1)

NameTypeDescription
AnyData*