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 |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
value |
numeric or string |
no |
no |
none |
Examples¶
make_col boolIfPossible:bool(obj.field)
The bool
function casts a value to bool
, and if that fails, returns null
.