i am trying to do a simple logical and statment inside the PDF templates and nothing is working
i have read through this documentation, it isn't helpful , i have asked AI to figure it out, it could not.
yuri rabii shalmaxb how do i do this inside a pdf template?
{{#if (and (notEqual cInvoiceType 'Delivery Note') (notEqual cInvoiceType 'Despatch Note') ) }}
<p class="text-xs mt-10"> wibble</p>
{{/if}}
Whenever I try this, I get
[2026-05-27 06:51:12] ERROR: Formula function: ext\pdf\generate, Error while generating. Message: Error in 'and (notEqual cInvoiceType \'Delivery Note\') (notEqual cInvoiceType \'Despatch Note\'': expect ')' but the token ended!!.
the brakets complet. From what I got from the limited documentation, this is the way to do it. Is there another way? Am I doing it wrong? What did i miss in the documentation?
i have read through this documentation, it isn't helpful , i have asked AI to figure it out, it could not.
yuri rabii shalmaxb how do i do this inside a pdf template?
{{#if (and (notEqual cInvoiceType 'Delivery Note') (notEqual cInvoiceType 'Despatch Note') ) }}
<p class="text-xs mt-10"> wibble</p>
{{/if}}
Whenever I try this, I get
[2026-05-27 06:51:12] ERROR: Formula function: ext\pdf\generate, Error while generating. Message: Error in 'and (notEqual cInvoiceType \'Delivery Note\') (notEqual cInvoiceType \'Despatch Note\'': expect ')' but the token ended!!.
the brakets complet. From what I got from the limited documentation, this is the way to do it. Is there another way? Am I doing it wrong? What did i miss in the documentation?

Comment