Nodes/Lenient Switch/Lenient Switch
ComfyUI Node

Lenient Switch

A ComfyUI node in Lenient Switch with 16 inputs and 2 outputs.

By id-fa·Created 3 months ago·Updated 2 months ago· 5
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)

NameTypeDefaultDescription
source_a*Pass-through source for slot A (any type).
treat_zero_as_falseBOOLEANtrue
treat_empty_string_as_falseBOOLEANtrue
evaluate_booleanBOOLEANtrue
treat_empty_list_as_falseBOOLEANtrue
block_on_all_falseBOOLEANfalse
bypass_unselectedBOOLEANfalseWhen 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)

NameTypeDescription
output*
matchedBOOLEAN