logic statements inside PDF's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Senior Member
    • Aug 2025
    • 316

    #1

    logic statements inside PDF's

    I am trying to do this inside the PDF template, but no matter how I do it doesn't work, and the documentation is also very lacking on examples

    <tr x-if-"{{and (notEqual cInvoiceType 'Delivery Note') (notEqual cInvoiceType 'Despatch Note')}}">
    <td colspan="2"> alsdfjkaslfdjaslkjfklj</td>
    </tr>

    {{#if and (notEqual cInvoiceType 'Delivery Note') (notEqual cInvoiceType 'Despatch Note')}}

    any one able to make 2 condtinal tests inside and if statment?

    in php it would be

    if( $this != 'that' && $that != 'this')
Working...