ComfyUI Node
NumberBinaryOperationConditional
Applies a binary (two number inputs, one fallback input) number operation only when condition is true; otherwise returns a or fallback_value. Conditions include various operators. See help or readme for a full list.
NumberBinaryOperationConditional
- NUMBER
◄conditionfalse►
◄fallback_mode▾►
◄fallback_value0►
◄op▾►
◄a0►
◄b0►
Categorymath/number
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| condition | BOOLEAN | false | — |
| fallback_mode | COMBO | 3 options: A, B, constant | |
| fallback_value | NUMBER | 0 | — |
| op | COMBO | 11 options: Add, Sub, Mul, Div, Mod, Pow, +5 | |
| a | NUMBER | 0 | — |
| b | NUMBER | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| NUMBER | NUMBER | — |