$field->isTrue()
Checks if the field value is truthy
$field->isTrue(): bool
Return type
bool
Examples
<?php if ($page->cover()->isTrue()): ?>
<figure class="cover">
<!-- Your code here -->
</figure>
<?php endif ?>
Checks if the field value is truthy
$field->isTrue(): bool
bool
<?php if ($page->cover()->isTrue()): ?>
<figure class="cover">
<!-- Your code here -->
</figure>
<?php endif ?>