Field::isValue([$value,$value,...])

Version 3.8

Check if field has a given value

DEPRECATED

This method should no longer be used.

Return TRUE if field has given value. If no value is given, return true if field has any value.

use isGiven(), hasValue(x,y)

Return value

Bool

Arguments

$value
Value used in comparison.

Full documentation

Give feedback, if 'Status' has value 'Pending' or 'Waiting':

if ( $Order->status->isValue('Pending','Waiting') ){
    $this->get('feedback','This is not finished!');
}

Show delivery date if it is given:

if ( $Order->delivery_date->isValue() ){
    $txt .= 'Delivery date is: '.$Order->delivery_date;
}