Skip to main content
New Participant
December 16, 2021

Ternary Sightly Condition is not working

  • December 16, 2021
  • 5 replies
  • 2106 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.

5 replies

milind_bachani
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
Employee
December 16, 2021