Ternary Sightly Condition is not working | Community
Skip to main content
Level 2
December 16, 2021

Ternary Sightly Condition is not working

  • December 16, 2021
  • 1 reply
  • 2109 views

Hi Team,

              I have to display the current page title on the basis of checkbox value and in else condition i need to display deafult vale.

I tried  but it is not working it is act as string 

title:${properties.pagetitle ?'currentPage.title':' properties.headline'}

it display me currentPage.title

 

is there anything wrong in the syntax.

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

1 reply

milind_bachani
Adobe Employee
Adobe Employee
December 16, 2021

Hi @savi50 ,

Yes there is syntax error (Do not use inverted commas inside {}), please use as : 

${properties.pageTitle? currentPage.title : properties.headline}

Thanks

milind_bachani
Adobe Employee
Adobe Employee
December 16, 2021