> For the complete documentation index, see [llms.txt](https://help.rbcgrp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.rbcgrp.com/actions/set-variable.md).

# Set Variable

The action will set a variable value based on the manually entered text/expression or selected dimension/measure.&#x20;

{% hint style="info" %}
Variable will be created during the action execution if it was not created before.
{% endhint %}

![](/files/-LbT6J0T79ELsINtixc-)

In the “**Variable**” parameter you can specify a variable name by selecting a variable from the list by clicking the <img src="/files/-LbT6YDCcYxxkaCKf2PX" alt="" data-size="original"> button or entering it manually.

A Qlik expression can be used in the “Variable” parameter by prefixing a variable with an equals sign, e.g.:

```
=if(someCondition, 'var1', 'var2')
```

In the “**Value**” parameter you can manually enter a value or select a dimension/measure by clicking the<img src="/files/-LbT7mBv6m1TKfPcUw97" alt="" data-size="original"> special button. A Qlik expression can be used by prefixing a value with an equals sign.
