I am trying to execute this snippet by using conditional operator but fails- sightly
I am trying to execute the following code snippet by using the conditional operator in sightly/htl:
but it is failing with the following error:
org.apache.sling.api.scripting.ScriptEvaluationException: ${author ? footer.root.path @ extension = 'html' : footer.root.path}: mismatched input '@' expecting {'.', 'in', '&&', '||', '[', ':'} in /apps/StateFarmAEM/components/product-footer-nav/product-footer-nav.html at line number 10 at column number 104How to correct this expression
Please help