Skip to content

Kirby 4.4.1

$field->isFalse()

Converts the field value into a proper boolean and inverts it

$field->isFalse(): bool

Return type

bool

Example

<?php if ($page->robots()->isFalse()): ?>
<meta name="robots" content="noindex,nofollow">
<?php endif ?>