How to provide default value in if condition in sightly | Community
Skip to main content
January 25, 2019
Question

How to provide default value in if condition in sightly

  • January 25, 2019
  • 1 reply
  • 2058 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Feike_Visser1
Adobe Employee
Adobe Employee
January 25, 2019

to me you can do this with ||