mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
10 lines
322 B
Markdown
10 lines
322 B
Markdown
# Variables
|
|
|
|
A *variable* is an [identifier](identifiers.md) used as an expression.
|
|
|
|
> **Syntax**
|
|
>
|
|
> *expression* → *identifier*
|
|
|
|
A variable must have the same name as a definition in the [scope](./scope.md) that encloses it.
|
|
The value of a variable is the value of the corresponding expression in the enclosing scope.
|