> ## Documentation Index
> Fetch the complete documentation index at: https://nocode-docs.zeroagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Declare Variable

The Declare Variable block is used to define a variable within the workflow. A variable can be declared with one of five data types:

1. Text
2. Number
3. Boolean
4. List
5. Time

Each datatype has certain properties that can be used.

### Text

Stores string data allowing you to create and manage string-based variables.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/str-var.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=a8ca1146b31d085d92ccbd54ea2d0596" alt="text" width="840" height="147" data-path="assets/images/str-var.png" />

The text datatype has the following properties that can be used.

| Operations         | Description                                      |
| ------------------ | ------------------------------------------------ |
| Set                | Declare a string or Overwrite an existing string |
| Prepend            | Add string value at start                        |
| Append             | Add string value at end                          |

### Number

Stores numerical data, representing quantities, counts, or measurements.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/num-var.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=eeb0694bbca7c1ec3260e3aa5d99510d" alt="number" width="836" height="144" data-path="assets/images/num-var.png" />

The number datatype has the following properties that can be used.

| Operations         | Description                                      |
| ------------------ | ------------------------------------------------ |
| Set                | Declare a number or Overwrite an existing number |
| Plus               | Add a value                                      |
| Minus              | Subtract a value                                 |

### Boolean

Represents true or false values, often used for making conditional decisions or indicating states.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/zeromagiclabsprivatelimited/assets/images/bool-var.png" alt="boolean" />

The boolean datatype has the following properties that can be used.

| Operations         | Description                                        |
| ------------------ | -------------------------------------------------- |
| Set                | Declare a boolean or Overwrite an existing boolean |

### List

Stores an ordered collection of items of `string` or `number` data type, ideal for managing multiple values.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/list-var.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=97403c773cdf3fec14e7205b5adae939" alt="list" width="837" height="185" data-path="assets/images/list-var.png" />

The list datatype has the following properties that can be used.

| Operations         | Description                                    |
| ------------------ | ---------------------------------------------- |
| Set                | Declare a array or Overwrite an existing array |
| Prepend            | Add a value at start of list                   |
| Append             | Add a value at end of list                     |

### Time

Stores specific points in time (e.g., dates, timestamps) or durations (e.g., hours, minutes).

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/time-var.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=6093f3c3e4648ca3c7bd8411df546c21" alt="time" width="841" height="50" data-path="assets/images/time-var.png" />

The time datatype has the following properties that can be used.

| Operations         | Description                                              |
| ------------------ | -------------------------------------------------------- |
| Set                | Declare a time value or Overwrite an existing time value |

<Tip>
  [Check here](/variables/environment-variables/) to learn about how to access the variables inside the workflow.
</Tip>
