i have an issue with less than operator in vuejs. what i want is:
if original price is 10 and discount price 200, then the result (discount_price) should not be displayed,
else show the discount_price
The code doesn't seem to work. Here is the code: HTML:
<div v-if="original_price > discount_price">
<span class="price-info mr-2">
{{ original_price | numeral('0,0') }}
</span>
<span>
{{ Number((original_price - discount_price) / original_price) * 100 + '%' }}
</span>
</div>
Please assist
question from:https://stackoverflow.com/questions/66057845/conditional-operator-less-than-is-not-working-in-vuejs