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