# variables

URL: /kida/api/nodes/variables/
Section: nodes
Description: Variable and scoping nodes for Kida AST.

---

> For a complete page index, fetch /kida/llms.txt.

Open LLM text
(/kida/api/nodes/variables/index.txt)

Share with AI

Ask Claude
(https://claude.ai/new?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fnodes%2Fvariables%2Findex.txt)

Ask ChatGPT
(https://chatgpt.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fnodes%2Fvariables%2Findex.txt)

Ask Gemini
(https://gemini.google.com/app?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fnodes%2Fvariables%2Findex.txt)

Ask Copilot
(https://copilot.microsoft.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fkida%2Fapi%2Fnodes%2Fvariables%2Findex.txt)

Module

#
`nodes.variables`

Variable and scoping nodes for Kida AST.

4Classes

## Classes

`Let`

3

▼

Template-scoped variable: {% let x = expr %} or {% let x ??= expr %}

Template-scoped variable: {% let x = expr %} or {% let x ??= expr %}

#### Attributes

Name
Type
Description

`name`

`Expr`

—

`value`

`Expr`

—

`coalesce`

`bool`

—

`Set`

3

▼

Block-scoped variable: {% set x = expr %} or {% set x ??= expr %}

Block-scoped variable: {% set x = expr %} or {% set x ??= expr %}

#### Attributes

Name
Type
Description

`target`

`Expr`

—

`value`

`Expr`

—

`coalesce`

`bool`

—

`Export`

3

▼

Export variable from inner scope: {% export x = expr %} or {% export x ??= expr %}

Export variable from inner scope: {% export x = expr %} or {% export x ??= expr %}

#### Attributes

Name
Type
Description

`name`

`Expr`

—

`value`

`Expr`

—

`coalesce`

`bool`

—

`Capture`

3

▼

Capture block content: {% capture x %}...{% end %}

Capture block content: {% capture x %}...{% end %}

#### Attributes

Name
Type
Description

`name`

`str`

—

`body`

`Sequence[Node]`

—

`filter`

`Filter | None`

—
