$field->or($alternative)

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

  • return (any)

Example

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