docs-v2/content/flux/v0.x/spec/variables.md

18 lines
592 B
Markdown

---
title: Variables
description: Flux variables hold values. A variable can only hold values defined by its type.
menu:
flux_0_x_ref:
parent: Flux specification
name: Variables
weight: 104
aliases:
- /influxdb/v2.0/reference/flux/language/variables/
- /influxdb/cloud/reference/flux/language/variables/
---
A **variable** represents a storage location for a single value.
Variables are immutable.
Once a variable is given a value, it holds that value for the remainder of its lifetime.
{{< page-nav prev="/flux/v0.x/spec/lexical-elements/" next="/flux/v0.x/spec/options/" >}}