Integer to boolean

Type conversion Pure
Integer to boolean
Value 0
Result

Description

Pure function returning true for any non-zero integer and false for zero.

When to use

Use Integer to boolean when a numeric value represents a flag — for example, a database column storing 0/1, or an API response where 0 means inactive. Connect the result to Branch to make the zero-check explicit and readable in the pipeline graph. For more precise conditions (e.g. “greater than 5”), use Greater than? or Equals directly rather than this node.

Pins

Input pins

Pin Type Default Notes
Value integer 0 The integer to convert. Zero maps to false; any other value (positive or negative) maps to true.

Output pins

Pin Type Notes
Result boolean False if value is 0; true for all other integers.

Example

Branch based on a numeric status flag returned by an external API. Extract the status field from the HTTP response and wire it into the Value input of Integer to boolean. Connect the Result output to the Condition input of Branch. A status of 0 takes the False execution output; any non-zero status takes the True output, treating the record as active.

See also