How to provide default value in if condition in sightly | Adobe Higher Education
Skip to main content
January 25, 2019
질문

How to provide default value in if condition in sightly

  • January 25, 2019
  • 1 답변
  • 2058 조회

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 답변

Feike_Visser1
Adobe Employee
Adobe Employee
January 25, 2019

to me you can do this with ||