If True 4
Four branches, one string, nothing left dangling
- if_true_1
- if_true_2
- if_true_3
- if_true_4
- fallback_1
- fallback_2
- fallback_3
- fallback_4
- out_1
- out_2
- out_3
- out_4
If True 4 is the biggest member of the pack's If True family: four parallel slots instead of one or three. One trigger string is compared against one expected value, and all four if_true_1 through if_true_4 inputs either pass through (on a match) or defer to their individual fallback_1 through fallback_4 (on a miss). Outputs are out_1 through out_4.
How it works
Everything about the mechanism is the same as If True 3, so read that page for the details. The short version: it's exact string equality (case- and whitespace-sensitive); trigger is forceInput, so it comes from a wire; the four value sockets are wildcard * and can carry any type. And - the part that matters - empty or unfulfilled branches emit an ExecutionBlocker, not a None. Nodes downstream of a blocked output are skipped entirely, which is the clean way to handle a branch you don't want to run.
Inputs and outputs
trigger(STRING, wired),expected(STRING, default "text") - the shared comparison.if_true_1..4(),fallback_1..4(, optional) - the four routeable values.out_1..4(*) - the results.
When to use it
So when do you need four over three? When a preset genuinely changes four things as a unit. The natural bundle in this pack: a checkpoint's MODEL on slot 1, a CLIP on slot 2, a VAE on slot 3, and a LoRA-applied model or conditioning on slot 4. One string flips a complete generation setup, and with Merge First catching the outputs you get "first live branch wins" across all of them.
One thing worth knowing: all four slots make the same yes/no decision, because they share one trigger/expected check. If you need per-slot conditions, this isn't the node - stack four single If True nodes instead.
Installing it
Install: ComfyUI Manager → "Conditional Nodes by Mikudes", or:
cd ComfyUI/custom_nodes
git clone https://github.com/levox00/Conditional-Nodes-Comfy-Ui
Restart ComfyUI; the node is in the conditional category, no dependencies to speak of.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| trigger | STRING | — | |
| expected | STRING | text | — |
| if_true_1 | * | — | |
| if_true_2 | * | — | |
| if_true_3 | * | — | |
| if_true_4 | * | — | |
| fallback_1opt | * | — | |
| fallback_2opt | * | — | |
| fallback_3opt | * | — | |
| fallback_4opt | * | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| out_1 | * | — |
| out_2 | * | — |
| out_3 | * | — |
| out_4 | * | — |