ComfyUI Node
NumberUnaryOperationConditional
Applies a unary (one number input, 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.
NumberUnaryOperationConditional
- NUMBER
◄conditionfalse►
◄fallback_mode▾►
◄fallback_value0►
◄op▾►
◄a0►
Categorymath/number
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| condition | BOOLEAN | false | — |
| fallback_mode | COMBO | 2 options: A, constant | |
| fallback_value | NUMBER | 0 | — |
| op | COMBO | 32 options: Neg, Inc, Dec, Abs, Sqr, Cube, +26 | |
| a | NUMBER | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| NUMBER | NUMBER | — |