Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

How to provide default value in if condition in sightly

Avatar

Level 1

I have a scenario where I have to provide a default value in data-sly-test expression if expression property does't exists. like below

     <sly data-sly-test="${properties.abc | 'xyz'}"> ${properties.pqr} </sly>

​Please help on this.

1 Reply