# 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&#x26;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&#x26;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&#x26;token=8beac5ac-baa4-48c6-9f05-c68b71ba3f67" alt=""><figcaption><p>Calculated measures based on variables</p></figcaption></figure>
