ComfyUI Node
Value on Boolean
Pick value_if_true or value_if_false based on a boolean. The chosen number is returned as FLOAT/INT/STRING; the boolean passes through.
Value on Boolean
- float
- int
- string
- boolean
◄booleantrue►
◄value_if_true1.00►
◄value_if_false0.00►
Category🎛️ Switchboard
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| boolean | BOOLEAN | true | — |
| value_if_true | FLOAT | 1.00-1000000000–1000000000 | — |
| value_if_false | FLOAT | 0.00-1000000000–1000000000 | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| float | FLOAT | — |
| int | INT | — |
| string | STRING | — |
| boolean | BOOLEAN | — |