title: Display the value depends on refrence number using jsonata
body: <p>{
  &quot;message&quot;:{
  &quot;Data&quot;:&quot;account/product&quot;,
  &quot;Refno&quot;:&quot;654&quot;
  }
  }</p>
  <p>I need output like if data field is as account then Refno will be 64
  If my data field is product the Refno will be empty string
  I tried this logic:
  message.{
  &quot;Data&quot;:&quot;account&quot;,
  &quot;Refno&quot;:($.Data='account')?$.Refno:&quot;&quot;
  }
  But this logic is not working
  Please anyone help me out</p>