> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/developing/api/primitives/bool.md).

# bool

The boolean class for Cheddar

## Arguments

| name    | type | description                                                                |
| ------- | ---- | -------------------------------------------------------------------------- |
| `value` | any  | the value, can be a cheddar class. (will be cast to boolean if applicable) |

## Usage:

`true`, with api:

```javascript
cheddar.init(
    cheddar.bool,
    true
)
```

`false`, with api:

```javascript
cheddar.init(
    cheddar.bool,
    false
)
```
