Nodes/Sage Utils/Logical Switch
ComfyUI Node

Logical Switch

Select between two inputs based on the condition; only the needed branch is evaluated when lazy.

By arcum42·Created 2 years ago·Updated 18 days ago· 32
Logical Switch
  • true_value
  • false_value
  • result
conditiontrue
CategorySage Utils/util

Inputs (3)

NameTypeDefaultDescription
conditionBOOLEANtrueChoose which branch to return.
true_valueopt*Value returned when the condition is true.
false_valueopt*Value returned when the condition is false.

Outputs (1)

NameTypeDescription
result*The selected branch value returned by the logical switch.