The display price always has a price but it is higher than the used price field, but not all records have a used_price instead, the used_price field always contains a 0.
How can I write a code so it will displays the used_price field results, if there exists one higher than 0, but also if the display_price has a higher price ?
//if used price is greater than 0 and display price is greater than used price
if ($used_price > 0 && $display_price > $used_price) {
echo $used price;
}