> 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/premium-table/working-with-premium-table/10.-variables/variable-types/boolean.md).

# Boolean

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

This section outlines configurations specific to boolean variables.

**1.1. Assign values:** Enable this toggle to assign specific values for the active and inactive states. The true and false options will be displayed when the Assign values toggle is enabled. You can enter the values in the respective text boxes.

**1.2. Enable by default:** The toggle for the boolean variable will be in the enabled or active state by default.&#x20;

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/Kjnej2BZX9oZNB5CZqhg/image.png" alt=""><figcaption><p>Boolean toggle</p></figcaption></figure>

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

**2.1. Control calculations**

**STEP 1:** Create a boolean variable with the configuration shown.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FvEocFu4zBQDftCqv3My9%2Fimage.png?alt=media&amp;token=312a3c21-dd2b-4061-9561-f43b7a1e3b77" alt=""><figcaption><p>Define a boolean variable</p></figcaption></figure>

**STEP 2:** Create a calculated measure and reference the technical name of the boolean variable in the formula.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FimEhv0JblFq691dHK0Qj%2Fimage.png?alt=media&amp;token=84de5553-2f85-42fe-8e92-e0fcac7ec9c1" alt=""><figcaption></figcaption></figure>

**STEP 3:** The values in the Interest Paid measure change based on the status of the boolean variable.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FtHkFMfeewX4xmcNWgW7Y%2FUntitled%20Project.gif?alt=media&amp;token=8beac5ac-baa4-48c6-9f05-c68b71ba3f67" alt=""><figcaption><p>Calculated measures based on variables</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/premium-table/working-with-premium-table/10.-variables/variable-types/boolean.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.
