mirror of
https://github.com/nushell/nushell.git
synced 2024-12-01 12:54:16 +01:00
bff81f24aa
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
528 B
528 B
let
Create a variable and give it a value.
Usage
> let <name> <equals> <expr> {flags}
Parameters
<name>
the name of the variable<equals>
the equals sign<expr>
the value for the variable
Flags
- -h, --help: Display this help message
Examples
Assign a simple value to a variable
> let x = 3
Assign the result of an expression to a variable
> let result = (3 + 7); echo $result
Create a variable using the full name
> let $three = 3