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

# Using Variables

Variables play a crucial role in scenarios within Directual and are an integral part of the [Templating system](/template-system/basics-of-template-system.md).

There are two primary types of variables:

* [Global Variables](/scenarios/using-variables/global-constants.md): These variables are accessible and applicable throughout your entire application. They can store data that needs to be shared across multiple scenarios or components within your app
* [Context Variables](/scenarios/using-variables/context-variables.md): Context variables are scoped to a particular scenario run. They are used to store and manipulate data for the duration of a specific scenario's execution
