$field->isTrue()
Converts the field value into a proper boolean
-
return (boolean)
Example
<?php if($page->hasHeader()->isTrue()): ?>
<header>
...
</header>
<?php endif ?>
Converts the field value into a proper boolean
<?php if($page->hasHeader()->isTrue()): ?>
<header>
...
</header>
<?php endif ?>