nushell/docs/commands/into_bool.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

583 B

title layout version
into bool command 0.59.0

Convert value to boolean

Signature

> into bool ...rest

Parameters

  • ...rest: column paths to convert to boolean (for table input)

Examples

Convert value to boolean in table

> echo [[value]; ['false'] ['1'] [0] [1.0] [$true]] | into bool value

Convert bool to boolean

> $true | into bool

convert decimal to boolean

> 1 | into bool

convert decimal string to boolean

> '0.0' | into bool

convert string to boolean

> 'true' | into bool