Hi,
I'm having a problem with ifs not working when I try to send an email. The template picks up the values when they are just being written out, however, when I put it in an if statement it does not work. Therefore, I feel like I maybe am writing the statement incorrectly?
<!-- {{#if Account.pVMSuma}} -->
<table>
<tbody>
<tr><td><strong>Tax: {Account.taxesTemplate.name}</strong></td></tr>
<tr><td>Amount: €{Account.pVMSuma}</td></tr>
<tr><td> </td></tr>
</tbody>
</table>
<!-- {{/if}} -->
I'm having a problem with ifs not working when I try to send an email. The template picks up the values when they are just being written out, however, when I put it in an if statement it does not work. Therefore, I feel like I maybe am writing the statement incorrectly?
<!-- {{#if Account.pVMSuma}} -->
<table>
<tbody>
<tr><td><strong>Tax: {Account.taxesTemplate.name}</strong></td></tr>
<tr><td>Amount: €{Account.pVMSuma}</td></tr>
<tr><td> </td></tr>
</tbody>
</table>
<!-- {{/if}} -->
Comment