Page::hasValue($field[,$field,...])

Version 4

Check if field(s) has a value

Return TRUE, if all fields has a valid value.

Return value

Bool

Arguments

$field
Technical name of the field

Full documentation

Count orderRow total, if amount AND price has value:

if ( $OrderRow->hasValue('amount','price') ){
    $OrderRow->total->calculate('amount*price');
}