Skip to content

Kirby 4.5.0

$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 ?>