Expand my Community achievements bar.

The first preview of our new Community upgrade is live - check it out now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

How to provide default value in if condition in sightly

Avatar

Former Community Member

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

Avatar

Employee

to me you can do this with ||