Conditioning Input Switch JK๐
A/B two prompts or two conditionings without rebuilding the graph
- conditioning_false
- conditioning_true
- conditioning_output
- boolean
Conditioning is what comes out of a text encoder before the sampler sees it - and it's the most-swapped thing in any workflow where you compare prompts. Conditioning Input Switch JK๐ takes two CONDITIONING wires and lets a boolean pick which one continues downstream. Two prompts, one KSampler, zero rewiring.
It's the conditioning-flavored member of JakeUpgrade's switch family, and it's one of the more genuinely useful ones: where an int or float switch swaps a number, this swaps an entire semantic branch. If you've opened one of Jake's imgen workflows, these are the nodes that let the same graph run "photoreal woman" and "anime woman" depending on a toggle.
How it works
if conditioning_true is not None and boolean_value:
return (conditioning_true, boolean_value)
else:
return (conditioning_false, boolean_value)
boolean_value-Truereturns the "true" conditioning,Falsethe "false" one.conditioning_false- required, used when False.conditioning_true- optional, used when True; unplugged means safe pass-through ofconditioning_false.
Outputs: conditioning_output (CONDITIONING - feed it to the KSampler's positive or negative socket) and boolean (the condition echoed out).
One thing to internalize: conditioning is just tensors plus some metadata (the text, the tokens, any controlnet hooks attached). So this switch can also swap between a plain prompt and a ControlNet-enhanced conditioning, or between a raw positive and an IPAdapter-influenced one - anything upstream that produces a CONDITIONING wire. That's more flexible than the name suggests.
Where you'd use it
Prompt A/B is the obvious one: two CLIP Text Encode nodes, their outputs into conditioning_false and conditioning_true, toggle to compare. But the interesting pattern is swapping processing - "same prompt, with or without the ControlNet" or "same prompt, pooled with this IPAdapter" - by toggling between a raw and an augmented conditioning. In JakeUpgrade's refine workflows, switches like this route between draft and detail conditioning paths so the graph stays a single shareable file.
Install
Part of ComfyUI-JakeUpgrade. ComfyUI Manager โ search ComfyUI-JakeUpgrade, or:
cd ComfyUI/custom_nodes
git clone https://github.com/jakechai/ComfyUI-JakeUpgrade
cd ComfyUI-JakeUpgrade && pip install -r requirements.txt
Nothing extra to install or download. It's under ๐ JK/๐ Switch. Standard pack notes: the IPAdapter Plus conflict warning in Manager comes from the replacement folder and can be ignored; and if switch nodes are missing entirely, check ENABLED_MODULES in the pack's config.ini.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| boolean_value | BOOLEAN | false | Condition to select between inputs (True=conditioning_true, False=conditioning_false) |
| conditioning_false | CONDITIONING | Conditioning to return when condition is False | |
| conditioning_trueopt | CONDITIONING | Conditioning to return when condition is True (optional) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| conditioning_output | CONDITIONING | โ |
| boolean | BOOLEAN | โ |