Number to Yes/No
Read a number as Yes/No: 0 is No and any other number Yes, or strictly 1 Yes and 0 No.
Command in the Boolean toolkit · id ooa.boolean/from_number · 2 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Value | Number | Yes | The number. | |
| Rule | String | No | non_zero | Non-zero: 0 is No, anything else Yes. One or zero: 1 is Yes, 0 is No, other numbers fail with BOOLEAN.INVALID. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Boolean | The Yes/No value. |