> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/working-with-inforiver/18.-variables/variable-types/advanced-variables.md). Agents can also search and read this documentation through its [MCP server](https://docs.inforiver.com/~gitbook/mcp).

# Advanced variables

Advanced variables enable users to refer to specific values or calculated values, and display them in the header or variables side panel.

### 1. Configuration <a href="#id-1.-configuration" id="id-1.-configuration"></a>

This section outlines configurations specific to advanced variables.

**1.1. Formula:** The value or calculation displayed in the variable.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fq4amL5CZlh3WW9GFqh69%2Fimage.png?alt=media&amp;token=f942bdb3-5dd7-47e1-91ff-a3da346415e2" alt=""><figcaption><p>Writing a formula or using a reference for advanced variables</p></figcaption></figure>

### 2. Examples <a href="#id-2.-examples" id="id-2.-examples"></a>

**2.1. Display information**

**STEP 1:** Create an advanced variable with the configuration shown.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FxM6zSv1yDrtXsJuWaKQQ%2Fimage.png?alt=media&amp;token=591bbbc1-20ac-4c13-b7d0-e002cd3e6dad" alt=""><figcaption><p>Define an advanced variable</p></figcaption></figure>

**STEP 2:** Insert the variable in the header by selecting the technical name of the variable from the Insert dropdown.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F9hkMZwkp7GDJGBd7wG3H%2Fimage.png?alt=media&amp;token=f8a12380-fe54-412b-a510-0a692b211dc0" alt=""><figcaption><p>Insert the variable in the header</p></figcaption></figure>

The current UTC date and time are displayed in the header with advanced variables.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FVXTtbCT3faCNgin3A5ez%2Fimage.png?alt=media&amp;token=84510508-6e1e-4de0-912f-0c6a42a295fe" alt=""><figcaption><p>Advanced variables in the header</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inforiver.com/working-with-inforiver/18.-variables/variable-types/advanced-variables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
