Announcement

Collapse
No announcement yet.

if condition with and in pdf template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • if condition with and in pdf template

    Is it possible to create a condition in PDF template that is a combination of two comparisons (ie. if this and that). Code below doesn't work. Is there some other syntax?

    {{#if 'p' [=] 'k [&] 'j' [=] 'k'}}
    false
    {{/if}}​

    {{#if 'p' [=] 'p' [&] 'j' [=] 'j'}}
    true
    {{/if}}​​

  • #2
    I think, you will find a solution here: https://www.cloudhadoop.com/handlebarjs-if-helper/

    Comment


    • espcrm
      espcrm commented
      Editing a comment
      Cool website.

  • #3
    Code:
    {{#ifEqual a b}}{{#ifEqual c d}}
        true
    {{/ifEqual}}{{/ifEqual}}

    Comment


    • #4
      Thanks. Was hoping for something not requiring a nested handlebar type approach; which is what I ended up doing.

      Comment

      Working...
      X