ComfyUI Node
FloatUnaryOperationConditional
Applies a unary (one float input, one fallback input) float operation only when condition is true; otherwise returns a or fallback_value. Conditions include various operators. See help or readme for a full list.
FloatUnaryOperationConditional
- FLOAT
◄conditionfalse►
◄fallback_mode▾►
◄fallback_value0.000►
◄op▾►
◄a0.000►
Categorymath/float
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| condition | BOOLEAN | false | — |
| fallback_mode | COMBO | 2 options: A, constant | |
| fallback_value | FLOAT | 0.000 | — |
| op | COMBO | 32 options: Neg, Inc, Dec, Abs, Sqr, Cube, +26 | |
| a | FLOAT | 0.000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |