# Boolean

The **boolean** widget allows you to display a status based on whether the measured value is **true** or **false**. If the measured value is **greater than zero** (value > 0), the status is considered **true** otherwise it is **false**. The boolean widget is suitable for displaying statuses like alarm, water leak, tamper, door open, etc.

In the **Widget options** modal, configure the following settings:

In the **Name** text box, enter a **name** as the **label** for your widget.

In the **Data field** drop-down list, select the **data field** to be used as the **data source**.

In the **Positive text** text box, enter a **text** to display if the measured value is **positive**.

In the **Negative text** text box, enter a **text** to display if the measured value is **negative**.

To add a **color** to the **background** of the widget, click on the **Background color** box and choose a **color** from the **color picker**.

Click on the **Save** button.

<figure><img src="https://2494440469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fggsr9Xlsze5cwVr4WMof%2Fuploads%2F6wm62UTAksMpQfCjSNiq%2Fboolean-1.png?alt=media&#x26;token=e61ac6fc-3593-4365-adb7-54014ac43636" alt="" width="328"><figcaption></figcaption></figure>

The resulting **boolean** widget looks something like this:

<figure><img src="https://2494440469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fggsr9Xlsze5cwVr4WMof%2Fuploads%2F5IBUqVc8qjuqDCDFHMIM%2Fboolean-2.png?alt=media&#x26;token=363590cd-3dde-45c5-a17b-92f9f8277597" alt="" width="275"><figcaption></figcaption></figure>
