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.
if/else
- if_true
- if_false
- result
◄condition—►
CategoryBasic/flow control
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| condition | BOOLEAN | — | |
| if_true | * | — | |
| if_false | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | * | — |