How to use Ternary Operator in Qualtrics | XM Community
Skip to main content
Question

How to use Ternary Operator in Qualtrics

  • April 24, 2021
  • 3 replies
  • 49 views

Forum|alt.badge.img+2

Can we use Ternary operator in Qualtrics

3 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • April 24, 2021

Like you would any other place.
There's no special format.


Forum|alt.badge.img+2
  • Author
  • April 29, 2021

ahmedA , can you please share one example how to use it in Qualtrics. I have Q1 with two options 'Yes'/'No'. in Q2 I need to show different question text based on Q1 selection i.e. there is different question text if Q1 = 'Yes' and there will be another question text if Q1 = 'No'.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • April 29, 2021

Please read the support pages on branch logic, skip logic and display logic. From what you've described the ternary operator has no role to play here.