ComfyUI Node
Lenient Switch
A ComfyUI node in Lenient Switch with 16 inputs and 2 outputs.
Lenient Switch
- source_a
- source_b
- source_c
- source_d
- source_e
- pass_if_a
- pass_if_b
- pass_if_c
- pass_if_d
- pass_if_e
- output
- matched
◄treat_zero_as_falsetrue►
◄treat_empty_string_as_falsetrue►
◄evaluate_booleantrue►
◄treat_empty_list_as_falsetrue►
◄block_on_all_falsefalse►
◄bypass_unselectedfalse►
CategoryLenient Switch
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| source_a | * | Pass-through source for slot A (any type). | |
| treat_zero_as_false | BOOLEAN | true | — |
| treat_empty_string_as_false | BOOLEAN | true | — |
| evaluate_boolean | BOOLEAN | true | — |
| treat_empty_list_as_false | BOOLEAN | true | — |
| block_on_all_false | BOOLEAN | false | — |
| bypass_unselected | BOOLEAN | false | When ON, slots whose pass_if_X is connected AND falsy are skipped WITHOUT evaluating their source_X, so that source's upstream chain does not run (lazy evaluation). Slots whose pass_if_X is unconnected are always evaluated (their winner can only be known at run time). Note: nodes are not visually bypassed like rgthree; they simply do not execute. |
| source_bopt | * | Optional pass-through source for slot B (any type). | |
| source_copt | * | Optional pass-through source for slot C (any type). | |
| source_dopt | * | Optional pass-through source for slot D (any type). | |
| source_eopt | * | Optional pass-through source for slot E (any type). | |
| pass_if_aopt | * | Per-slot truthiness test (NOT a CONDITIONING input). When connected, this value decides whether the matching source_X is forwarded; if unconnected, source_X is tested against itself. | |
| pass_if_bopt | * | Per-slot truthiness test (NOT a CONDITIONING input). When connected, this value decides whether the matching source_X is forwarded; if unconnected, source_X is tested against itself. | |
| pass_if_copt | * | Per-slot truthiness test (NOT a CONDITIONING input). When connected, this value decides whether the matching source_X is forwarded; if unconnected, source_X is tested against itself. | |
| pass_if_dopt | * | Per-slot truthiness test (NOT a CONDITIONING input). When connected, this value decides whether the matching source_X is forwarded; if unconnected, source_X is tested against itself. | |
| pass_if_eopt | * | Per-slot truthiness test (NOT a CONDITIONING input). When connected, this value decides whether the matching source_X is forwarded; if unconnected, source_X is tested against itself. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| output | * | — |
| matched | BOOLEAN | — |