bool

Description

Generate a boolean value of the argument value.

Return type

bool

Domain

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

Categories

Usage

bool( value )

Argument

Type

Required

Multiple

value

string or numeric

Required

Only one

Examples

make_col boolIfPossible:bool(obj.field)

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