I'm attempting to construct a query to retrieve assets based on a selected JCR node type. I'm attempting to compare the nodeType variable within the following condition.
I have added condition:
{{#if '{{nodeType}}' == 'dam:Asset'}}
From the above observation, it is noted that I am encountering this exception:
Caused by: com.github.jknack.handlebars.HandlebarsException: inline@107adee3:5:21: found: '=', expected: '}}'
{{#if '{{nodeType}}' == 'dam:Asset'}}
I tried with {{#if '{{nodeType}}' = 'dam:Asset'}}, still the same issue.
Please let me know the appropriate syntax.
_ Thanks