> For the complete documentation index, see [llms.txt](https://docs.robpod.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.robpod.cloud/robot/robot-variables.md).

# Robot Variables

Usually scripts are just a part of a structurated robot program. For this reason, when developing a script, sometimes you need to access variables that are not define inside the script, but in some other part of the program.

In order to run and test correctly scripts that use variables defined outside of the script scope you can use the ![](/files/YK8NtIlVJpVBrFtUucIh)**Variables Tool Window.**

With the Variables Tool Window you can add, edit and remove global variables, which will be then available inside your script.

<figure><img src="/files/5nIS9dfMlyOQe0VT0BBL" alt=""><figcaption></figcaption></figure>

Proceed as follow to define a variable:

1. Click on **Add** <img src="/files/zNl63rjOJoIX57BKmfHp" alt="" data-size="line"> to add a new variable.
2. Choose variable name and set an intialization value.

   <figure><img src="/files/GqQnuvk0M5IEnC4RCjoZ" alt="" width="305"><figcaption></figcaption></figure>
3. OK.

{% hint style="info" %}
For Polyscope X, optionally you can define the variable as a **Application Variables**. Application variables are defined inside the robot at system level and are shared by all programs, while simple **Global Variables** are defined inside a specific program.
{% endhint %}
