Nodes/Comfyroll Studio/πŸ”€ CR Conditioning Input Switch
ComfyUI Node Runs on cloud

πŸ”€ CR Conditioning Input Switch

Pick one of two prompt conditionings by number

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,296
πŸ”€ CR Conditioning Input Switch
  • conditioning1
  • conditioning2
  • CONDITIONING
  • show_help
β—„Input1β–Ί

Two encoded prompts, one sampler, and you want to A/B them without rewiring every time. This node is the clean way to do it. You feed it two CONDITIONING streams - say, two different positive prompts, or a detailed prompt versus a stripped-down one - set a number, and it passes the one you picked to the sampler.

It's a Comfyroll Studio node (Suzie1 / RockOfFire), part of the pack's little family of type-specific input switches. It doesn't touch or combine the conditionings; it just selects. If you want to actually blend two conditionings, that's a different job (Comfyroll has a Conditioning Mixer for that) - this one is a straight either/or.

How it works

The selector is a single integer, Input, set to 1 or 2. At 1, conditioning1 flows through to the output; at 2, conditioning2 does. Whatever comes out is the exact conditioning you fed in - same tensors, same guidance, nothing added. It's a router, not a processor.

Because conditioning in ComfyUI is the encoded, model-ready form of your prompt (the output of a CLIP Text Encode, already carrying any ControlNet or area conditioning you stacked on), switching at this stage means you're choosing between two fully-built prompt pipelines right before they hit the sampler.

The inputs that matter

  • Input (1 or 2, default 1) - which branch wins. The only real control.
  • conditioning1 / conditioning2 - the two conditioning streams you're choosing between. Both are optional to connect while building, but the one your number points at needs to be wired.

Output is a single CONDITIONING (plus a show_help string that just links the wiki - ignore it for wiring). Send the output into your KSampler's positive or negative input.

Where you'd actually reach for it

The sweet spot is a saved template you rerun a lot. Instead of dragging the positive wire between two encode nodes every session, you flip a number. It's also handy in a graph where an upstream value drives several switches together - pick "style A" once and let it cascade to the conditioning, the model, and the LoRA switches at the same time.

For a one-off, though, be honest with yourself: moving a wire is faster than adding a node. The switch pays off when it's part of something you reuse.

How to install it

  • ComfyUI Manager: search Comfyroll Studio, install, restart.
  • Manual: cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart.

Nothing to download - it's pure routing.

Common issues

The switch itself almost never breaks. What breaks is the pack loading. Comfyroll is a large, older collection, and on recent ComfyUI versions a submodule can fail to import at startup, producing a wall of NameError: name 'CR_...' is not defined lines and making every CR node vanish from the menu. Don't chase the last error - scroll to the first traceback, which is the actual cause; the rest is cascade. Updating the pack via Manager is the usual fix.

Second, remember this is a manual selector. It doesn't auto-detect which branch is connected and it won't quietly fall back - if you set Input to 2 and conditioning2 is empty, you get an error, which is the node doing exactly what you told it. Point the number at a live branch and it behaves.

Category🧩 Comfyroll Studio/πŸ› οΈ Utils/πŸ”€ Logic

Inputs (3)

NameTypeDefaultDescription
InputINT11–2β€”
conditioning1optCONDITIONINGβ€”
conditioning2optCONDITIONINGβ€”

Outputs (2)

NameTypeDescription
CONDITIONINGCONDITIONINGβ€”
show_helpSTRINGβ€”