Skip to main content

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​

InputTypeRequiredDefaultWhat it is
ValueNumberYesThe number.
RuleStringNonon_zeroNon-zero: 0 is No, anything else Yes. One or zero: 1 is Yes, 0 is No, other numbers fail with BOOLEAN.INVALID.

Outputs​

OutputTypeWhat it is
resultBooleanThe Yes/No value.