Skip to content

Kirby 6.0.0

$field->isFalse()

Checks if the field value is falsely

$field->isFalse(): bool

Return type

bool

Examples

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