Skip to main content

Complex logic (AND/OR/parentheses) in Handlebars templates

I want to be able to use complex logic in Handlebars templates, specifically "AND" and "OR" operators along with parentheses for grouping conditions. This is needed to create more sophisticated conditional content in widgets and templates.
1 comment

Log in to comment and vote

Comments1

  • Gold ZeroG

    •

    May 15

    Being able o use this kind of logic, you can make 1 document, with for example variable payment options, depending on the total price of the quote. Now you have to have multiple documents, one for each situation; or have 1 document and have all payment options in the document and let the account manager remove the not-valid payment options.