# Variables globales y locales

Las variables globales y locales en Sherpa Designer se diferencian por su ámbito de visibilidad.

El ámbito de visibilidad define el contexto en el que una variable está disponible para lectura y escritura:

* Local — disponible solo en el diagrama actual.
* Global — disponible en todos los diagramas.

En el panel central inferior, un menú desplegable permite seleccionar el modo:

* Todas las variables son globales — todas las variables estarán disponibles en todos los diagramas.
* Variables globales y locales — para utilizar tanto variables globales como locales en diferentes diagramas.

<figure><img src="https://3940823687-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8QfFNyYLPzoIrRZpZokA%2Fuploads%2Fgit-blob-48bd3e4c7919cf8d8f480fb6f4b871084779e80d%2Funknown%20(17).png?alt=media" alt=""><figcaption></figcaption></figure>

Si se requiere cambiar manualmente el ámbito de visibilidad de una variable, es necesario marcar la casilla en la columna izquierda de la tabla en el panel "Variables".

<figure><img src="https://3940823687-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8QfFNyYLPzoIrRZpZokA%2Fuploads%2Fgit-blob-df632c4648c4df5f37c2e9d8977980e33d8817ce%2Funknown%20(1)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

Al marcarla, el ámbito de visibilidad de la variable se convierte en global.

Más información sobre el trabajo con variables:

{% embed url="<https://docs.sherparpa.ru/sherpa-rpa/sherpa-designer/rabota-v-sherpa-designer/paneli-svoistv-i-peremennykh-i-rabota-s-nimi/panel-peremennye/rabota-s-peremennymi>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/es/sherpa-rpa/sherpa-designer/rabota-v-sherpa-designer/nizhnyaya-centralnaya-panel/globalnye-i-lokalnye-peremennye.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
