---
search:
  boost: 0.5
---

[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.)

# <code class="doc-symbol doc-symbol-class"></code> `Boolean` {#safeds.lang.Boolean data-toc-label='[class] Boolean'}

A truth value.

**Examples:**

```sds
pipeline example {
    val boolean = true;
}
```
```sds
pipeline example {
    val boolean = false;
}
```

??? quote "Stub code in `coreClasses.sdsstub`"

    ```sds linenums="56"
    class Boolean
    ```
    { data-search-exclude }
