$field->or($alternative)

Checks if the field is empty and returns an alternative value in this case

  • return (any)

Example

<meta name="description" content="<?= $page->description()->or($site->description()) ?>">