bool(value: numeric or string) -> bool

Generate a boolean value of the argument value.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col boolIfPossible:bool(obj.field)

The bool function casts a value to bool, and if that fails, returns null.