generated

RgthreeAnySwitch

RgthreeAnySwitch is a dynamic "Any Switch" node. It accepts values of any ComfyUI type and passes one of them through to a single wildcard output.

Rgthree Any Switch

*
rgthree comfy

Description

RgthreeAnySwitch is a dynamic "Any Switch" node. It accepts values of any ComfyUI type and passes one of them through to a single wildcard output. Because the switch is dynamic, its input sockets are not a fixed, pre-declared list: the node is designed to work with a variable number of inputs, so you can route as many candidate values into it as your workflow needs.

This makes the node useful as a generic pass-through or fallback point in a graph. Instead of committing to a specific type in advance, you can feed it several different values and let the switch resolve to the one that is actually supplied. The output is typed as UNKNOWN, which ComfyUI treats as a wildcard, so the resolved value can be connected to any downstream input that expects the corresponding concrete type.

Inputs

Dynamic inputs

The node does not define a static set of typed inputs. Its inputs are created and managed dynamically, and each one accepts any type. In practice, you connect the values you want the switch to consider; inputs that are left unconnected do not supply a value and are skipped.

Because the socket count is dynamic, the exact set of inputs visible on the node can differ between workflows and is not part of the node's fixed interface.

Outputs

OutputTypeDescription
OutputUNKNOWNThe selected input value, passed through unchanged. The concrete type is whatever the active input provides, so the output can be wired into any compatible input.

Usage Notes

  • Use the node when a graph needs an "any type" junction, such as selecting between optional inputs or providing a fallback value.
  • Unconnected inputs are ignored, so you can leave candidate inputs empty without breaking the workflow.
  • Since the output type is UNKNOWN, the downstream node determines how the value is interpreted; make sure the selected input carries a type the downstream node can accept.
  • Multiple Any Switch nodes can be chained to build more elaborate selection or fallback logic.
  • The node is dynamic, so the available inputs may not appear until the workflow or prompt is resolved; this is expected behavior rather than a missing configuration.

Comments

Sign in with GitHub to join the discussion.

Loading comments…