Hi,
I am trying to hide the discount amount in the PDF Template if the value is equal to zero. I tried the following codes but I could not make it work.
This code displays the amount even if the discount is equal to zero
I also tried using x-if but could not make it work as well. The code below still displays the discount even if the value of discount is zero.
Please help.
Thanks in advance...
I am trying to hide the discount amount in the PDF Template if the value is equal to zero. I tried the following codes but I could not make it work.
This code displays the amount even if the discount is equal to zero
Code:
{{#if (notEqual discountAmount 0)}}
<tr>
<td colspan="5" align="right">Discount Amount</td>
<td align="right">{{discountAmount}}</td>
</tr>
{{/if}}
Code:
<tr x-if="{{notEqual discountAmount 0}}">
<td colspan="5" align="right">Discount Amount</td>
<td align="right">{{discountAmount}}</td>
</tr>
Please help.
Thanks in advance...

Comment