if/else

Basic data handling: IfElse

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (3)

NameTypeRequired
conditionBOOLEANrequired
if_true*required
if_false*required

Outputs (1)

NameType
result*