Little Help With Sold Amount

This

{$product.sales_amount}

prints how many times product was sold in product details page. How to do a condition

if sold > 1 pint {$product.sales_amount} if less then - or 0

Thank you

Try

{$product.sales_amount|default:'-'}

Thank you for your help

Try

{$product.sales_amount|default:'-'}