> For the complete documentation index, see [llms.txt](https://niam.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://niam.gitbook.io/documentation/game-creator-2/inline-variables.md).

# Inline Variables

<figure><img src="/files/JVHP4O10KJowIMMJdMJG" alt=""><figcaption></figcaption></figure>

Take your Game Creator 2 visual scripting workflows to the next level with Inline Variables, a clean and efficient way to create temporary variables directly as instructions.

<p align="center">Available at <a href="https://u3d.as/3WJd"><img src="/files/1HwjqRzs7c97dsIFSjtQ" alt="" data-size="original"></a></p>

{% hint style="warning" %}
The **Inline Variables** is a third-party extension designed for [**Game Creator 2**](https://gamecreator.link/core) and requires it to function properly
{% endhint %}

Simplify your Game Creator 2 logic with inline variables that exist only for the duration of an instruction execution flow.&#x20;

This package introduces a set of instructions for creating single or multiple inline variables. It also provides a highly efficient way to iterate over lists and other collections, making complex logic cleaner, faster, and easier to maintain.

Instead of cluttering your scene with extra variable components for temporary values, you can declare variables exactly where they are needed and use them instantly in later instructions without adding unnecessary overhead.

## Key Features

* Plug and play, No setup required.
* Declare temporary name or list variables directly as instructions.
* Complete set of Instructions, Conditions, Property Setter and Getter.
* Keep variables access scope to the current instruction execution flow.
* 'For Each in List' Instruction to iterate lists and other collections with ease.
* 'Inline If Else Conditions' Condition with inline variable scope access support.
* Restores initial values when the scope ends, unless persistence is enabled.
* Reduce scene clutter by avoiding variable components for temporary values.
* Supports all Official Game Creator 2 Variable Value Types.
* Compatible with all Game Creator 2 modules.
* Full access to C# source code in Plugins folder for easy modification.

{% hint style="info" %}
If you have any questions, suggestions or feedback, please feel free to contact us via [email](mailto:niam.soft@gmail.com).
{% endhint %}

## **Contents**

<table data-view="cards" data-full-width="false"><thead><tr><th data-card-target data-type="content-ref"></th><th data-hidden align="center"></th></tr></thead><tbody><tr><td><a href="/pages/zq3m4gh1JHdCNYH17G2B">/pages/zq3m4gh1JHdCNYH17G2B</a></td><td align="center">Getting Started   </td></tr><tr><td><a href="/pages/FbjKCzI4tF5Rq3xUkq3e">/pages/FbjKCzI4tF5Rq3xUkq3e</a></td><td align="center">Avatar</td></tr><tr><td><a href="/pages/eSxiSLpmNDhHt2BMfTH9">/pages/eSxiSLpmNDhHt2BMfTH9</a></td><td align="center">Remember</td></tr><tr><td><a href="/pages/nxVFuRb9q6WjblyyCGpC">/pages/nxVFuRb9q6WjblyyCGpC</a></td><td align="center">Variables</td></tr><tr><td><a href="/pages/6Xg8E0j8XkyS5YXmcvQH">/pages/6Xg8E0j8XkyS5YXmcvQH</a></td><td align="center">Dynamic UI</td></tr></tbody></table>
