# Variáveis Globais e Locais

As variáveis globais e locais no Sherpa Designer diferem em seu escopo.

O escopo define o contexto em que a variável está disponível para leitura e gravação:

* Local — disponível apenas no diagrama atual.
* Global — disponível em todos os diagramas.

No painel central inferior, um menu suspenso permite selecionar o modo:

* Todas as variáveis são globais — todas as variáveis estarão disponíveis em todos os diagramas.
* Variáveis globais e locais — para usar tanto variáveis globais quanto locais em diferentes diagramas.

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

Se for necessário alternar manualmente o escopo da variável, é necessário marcar a caixa de seleção na coluna da esquerda da tabela no painel “Variáveis”.

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

Ao marcá-la, o escopo da variável se torna global.

Saiba mais sobre como trabalhar com variáveis:

{% 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/pt/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.
