# 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.


---

# 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://help.rbcgrp.com/actions/set-variable.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.
