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

# Persistent Variables

> Learn how persistent variables store long‑term data across workflows.

***

## Overview

Persistent variables allow workflows to store data that remains available across multiple runs and workflows. Once defined, these variables can be accessed and modified by any workflow connected to the same environment.

***

## Variable Types

There are three persistent variable types available:

* **String Variable** - Stores text values that persist across workflows and runs.
* **Number Variable** - Stores numeric values for calculations or counters.
* **Boolean Variable** - Stores true/false values for logical conditions.

Each variable type includes the following fields:

* **Name** - The identifier for the variable.
* **Expiration** - Defines how long the variable remains active.
* **Default Value** - The initial value assigned when the variable is created.
* **Scopes** -  Determines which player, user, or object the variable applies to.

For example, defining a variable named `balance` scoped to a player ensures each player has their own balance record that persists across sessions.

<Info> Persistent Variable blocks can be found under the **Utilities** section of the workflow editor. </Info>

***

## Managing Variables

All persistent variables can be viewed and managed from the **Variables** tab in your workflow editor.\
This interface displays each variable’s name, value, scope, expiration, and last updated time.

Example:

| Name | Value | Scope | Expires | Last Updated |
| - | - | - | - | - |
| balance | 600 | @0xraptor | — | Aug 25, 2026 |
| balance | 1000 | @collin222games | — | Aug 3, 2026 |
| balance | 1600 | @roobs030 | — | Jul 23, 2026 |

<Frame caption="Variables Tab - Overview">
  <img className="block" src="https://mintcdn.com/melonly/jgj0gSdzld4uaQ31/images/Dashboard/Resource/workflows/extras/varitaboverviewimg.png?fit=max&auto=format&n=jgj0gSdzld4uaQ31&q=85&s=0c960839f39e89607272b4e2c710cc52" alt="" style={{ borderRadius: '0.75rem' }} width="1901" height="939" data-path="images/Dashboard/Resource/workflows/extras/varitaboverviewimg.png" />
</Frame>

***

## Using Persistent Variables in Workflows

Persistent variables can be connected to workflow blocks using the **Scopes** field.\
Drag and drop an output variable from another block to define which entity the variable belongs to.

This allows workflows to:

* Track player balances or points.
* Store long-term configuration values.
* Maintain session data between runs.

***

## Example Package: Economy System

The **Economy System** package demonstrates how persistent variables can power a complete in-game economy.\
It includes 11 workflows that automate balance tracking, daily rewards, and transaction management.\
You can find it under **Templates & Packages → Economy System**.

<Frame caption="Templates - Overview">
  <img className="block" src="https://mintcdn.com/melonly/jgj0gSdzld4uaQ31/images/Dashboard/Resource/workflows/extras/templateexampleimg.png?fit=max&auto=format&n=jgj0gSdzld4uaQ31&q=85&s=9097e663ff234e011a404b43de598261" alt="" style={{ borderRadius: '0.75rem' }} width="1895" height="932" data-path="images/Dashboard/Resource/workflows/extras/templateexampleimg.png" />
</Frame>

***

<Card title="Need help?" icon="headset" href="https://melonly.xyz/discord">
  Still have questions? Join our Discord server for support.
</Card>


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