1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-10-18 13:50:37 -04:00
nix/doc/manual/source/language/variables.md

11 lines
322 B
Markdown
Raw Normal View History

# 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.