mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 19:43:14 +02:00
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
43
docs/commands/into_bool.md
Normal file
43
docs/commands/into_bool.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
title: into bool
|
||||
layout: command
|
||||
version: 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
|
||||
```shell
|
||||
> echo [[value]; ['false'] ['1'] [0] [1.0] [$true]] | into bool value
|
||||
```
|
||||
|
||||
Convert bool to boolean
|
||||
```shell
|
||||
> $true | into bool
|
||||
```
|
||||
|
||||
convert decimal to boolean
|
||||
```shell
|
||||
> 1 | into bool
|
||||
```
|
||||
|
||||
convert decimal string to boolean
|
||||
```shell
|
||||
> '0.0' | into bool
|
||||
```
|
||||
|
||||
convert string to boolean
|
||||
```shell
|
||||
> 'true' | into bool
|
||||
```
|
||||
|
Reference in New Issue
Block a user