It looks like the PDF/Email custom helper templates must return a string and can't be nested with other helpers, such as the condition checking?
I'm wanting a block of text to be included only if my custom helper returns true, but variations of the following always run the else block.
The ultimate goal is to include some blocks of text if a quote includes particular product items.
Any hints?
I'm wanting a block of text to be included only if my custom helper returns true, but variations of the following always run the else block.
Code:
{{#ifEqual (customHelperCheck 'someVariable') 'true'}} This text should render if customHelperCheck returns 'true'. {{else}} This text should render if customHelperCheck returns anything besides 'true'. {{/ifEqual}}
Any hints?
Comment