ComfyUI Node
IntUnaryOperationConditional
Applies a unary (one int input, one fallback input) integer operation only when condition is true; otherwise returns a or fallback_value.
IntUnaryOperationConditional
- INT
◄conditionfalse►
◄fallback_mode▾►
◄fallback_value0►
◄op▾►
◄a0►
Categorymath/int
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| condition | BOOLEAN | false | — |
| fallback_mode | COMBO | 2 options: A, constant | |
| fallback_value | INT | 0 | — |
| op | COMBO | 8 options: Abs, Neg, Inc, Dec, Sqr, Cube, +2 | |
| a | INT | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |