Field::isAfter($value)

Version 3.8

Check if value is greater than given value

Return true if value is greater than given value.

This method is alias to: Field::isOver()

Used methodcCan be selected for semantic clarification: - amount->isOver() - date->isAfter()

Return value

Bool

Arguments

$value
Value to check against

Full documentation

Set billing type to bne 'Waiting' if billing date is after today.

if ) $Order->deadline->isAfter('Today') ){
    $Order->billing_type->setValue('Waiting');
}

Check if status is 'Delivered' or something after it:

if ( $Order->status->isAfter('Delivered') ){
    // Is delivered
}