# $field->isTrue()

Converts the field value into a proper boolean

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/methods.php#L48>

****

```php
$field->isTrue(): bool
```

## Return type

`bool`

This method modifies the existing `$field` object it is applied to and returns it again.


## Examples

```php
<?php if ($page->cover()->isTrue()): ?>
<figure class="cover">
  <!-- Your code here -->
</figure>
<?php endif ?>
```