# 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="/files/x63SWXHcWNN0gWGKuHuJ" 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="/files/U83d742RRjCx8MNym2jK" alt=""><figcaption><p>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="/files/V61vP5xAV8eYjGtyUhdf" alt=""><figcaption><p>Using a boolean variable in a formula measure</p></figcaption></figure>

**STEP 3:** The  values in the Revenue measure change based on the status of the boolean variable,

<figure><img src="/files/x8qt561Jr2EIyf1gopfe" alt=""><figcaption><p>Value of calculated measure changes based on the variable</p></figcaption></figure>


---

# 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://docs.inforiver.com/working-with-inforiver/18.-variables/variable-types/boolean.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.
