into bool
for conversions
Convert value to boolean.
Signature
> into bool ...rest
Parameters
...rest
: for a data structure input, convert data at the given cell paths
Examples
Convert value to boolean in table
> [[value]; ['false'] ['1'] [0] [1.0] [true]] | into bool value
╭───┬───────╮
│ # │ value │
├───┼───────┤
│ 0 │ false │
│ 1 │ true │
│ 2 │ false │
│ 3 │ true │
│ 4 │ true │
╰───┴───────╯
Convert bool to boolean
> true | into bool
true
convert integer to boolean
> 1 | into bool
true
convert decimal to boolean
> 0.3 | into bool
true
convert decimal string to boolean
> '0.0' | into bool
false
convert string to boolean
> 'true' | into bool
true