> 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/context-variables.md).

# Context Variables (scenario parameters)

In a manner similar to traditional programming languages, the platform supports context (local) *variables*. These variables are designed for use within specific scenarios, and their scope is limited to the execution of those scenarios. In all other cases, they are assigned a *null* value.

## Adding context parameters in START step settings

You can setup context variables when creating a scenario ([START step](/scenarios/editing-scenarios/system-steps/start-step.md) settings, **Parameters** tab):

![](/files/-M6jdA_SNBwgpjJ4b1x0)

## Using context variables in scenarios

You can both *write* and *read* context variables in your scenario as if they were regular object fields. You can invoke this variable typing or choosing `{{ContextVar.variableName}}`

## Setting up context parameters values in Link scenario step

You can set the context variables values in [Link scenario](/scenarios/editing-scenarios/system-steps/link-scenario-step.md) step:

![](/files/-MDpeGtuPDhFyGbggq9_)

## Testing blocks with context variables

{% hint style="warning" %}
As mentioned before, a variable receives value only during the scenario run. Therefore, when testing blocks via [testing step](/scenarios/testing-and-debugging.md), if set, the current value is returned.
{% endhint %}

![](/files/-M6jdEKzJXB71xyu0AXs)
