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

# Short-lived values

> Values that only last while your command or event is running.

Sometimes you need a box **just for a moment**, like a sticky note you throw away when you are done. You do not want it on the Database page forever.

Short-lived values only last while the command or event is running. When it ends, they're gone. The next time the command is used, it starts fresh.

## Where they come from

| Where | What you type | Example |
| - | - | - |
| A command input called NAME | `{option_NAME}` | `{option_amount}` |
| A **Temporary value** block | the name you gave it | `{total}` |
| **Get a key** in Save a value | the name you gave it | `{my_coins}` |
| A pop-up form | `{FORMNAME.BOX}` | `{apply.age}` |
| A web request | `{REQUEST.response.FIELD}` | `{weather.response.temp}` |
| A Repeat block | `{loop_number}`, `{item}` | `{item}` |

See [Built-in variables](/variables/built-in-variables#blocks-inputs-and-events) for all of them.

## The Temporary value block

**1. Add the block**

Find **Temporary value** in the block list and drag it onto the canvas.

**2. Give it a name**

Type a **Name**, like `my_value`. Use the same name again later in the same run to change it.

**3. Give it a value**

Type a **Value**, like `hello {user_name}`. Use the `{ }` **Variables** button to add other values.

If you leave the value **empty**, DogeBot puts in a brand new **unique ID**. That is handy when you need a code nobody else has, like a ticket number.

Now every block **after** it can use `{my_value}`.

## Example

> **Work out a total once, use it twice**
>
> A **Temporary value** called `total` with the value `{solve_equation[{option_price} * {option_amount}]}`.
>
> Then a Reply: `That costs {total} coins.`

## When to use which

| You want to... | Use |
| - | - |
| Remember something **forever** (coins, levels) | A custom variable (`{DBVAR_...}`). See [Make a variable](/variables/make-your-own-variables). |
| Hold something **only during this run** (a total you are working out, a ticket code) | A **Temporary value** block |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.