Skip to content

Kirby 5.0.4

$field->isFalse()

Converts the field value into a proper boolean and inverts it

$field->isFalse(): bool

Return type

bool

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

Examples

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