Conditional logic for piped text | XM Community
Skip to main content
Solved

Conditional logic for piped text

  • January 21, 2019
  • 3 replies
  • 200 views

Forum|alt.badge.img+1
I have a constant sum question asking the number of times a respondent has bought each of the following products. In the following question, I currently pipe in the highest response via "Please rate your satisfaction with ${q://QID108/ChoiceGroup/ChoiceWithHighestValue}." Two issues: 1. How do I break ties? e.g., someone has bought Pencils 5 times and Pens 5 times. 2. (How) can I add conditional logic? e.g., let's say I want to ask satisfaction for anyone who selects Erasers as long as purchase is > 0; if they don't select it, then the piped text reverts to the product with the highest number of purchases. Put a different way: "If Erasers > 0, then input text; else, ${q://QID108/ChoiceGroup/ChoiceWithHighestValue}."

Best answer by LaurenK

Hi @descher! It looks like you reached out to our Support Team and the representative was able to walk you through Piped Text and Branch Logic to answer your question! :)

3 replies

Forum|alt.badge.img+1
  • Author
  • January 21, 2019
I figured out how to add conditional logic by using branching in the survey flow ("Branch If" into new block if question answer is not empty). Still unclear how to break ties among ChoiceWithHighestValue.

LaurenK
Former XM Community Team Member
Forum|alt.badge.img+13
  • Former XM Community Team Member
  • Answer
  • February 5, 2019
Hi @descher! It looks like you reached out to our Support Team and the representative was able to walk you through Piped Text and Branch Logic to answer your question! :)

  • September 11, 2021

I am interested in this answer because I am having trouble breaking ties with piped text. Is there support for this type of question?