ComfyUI Node

if/else

Implements a conditional branch (if/else) in the workflow. This node takes a condition input and two value inputs. If the condition evaluates to True, the first value is returned; otherwise, the second value is returned. This allows conditional data flow in ComfyUI workflows.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
if/else
  • if_true
  • if_false
  • result
condition
CategoryBasic/flow control

Inputs (3)

NameTypeDefaultDescription
conditionBOOLEAN
if_true*
if_false*

Outputs (1)

NameTypeDescription
result*