Math in display logic not working | XM Community
Skip to main content
Solved

Math in display logic not working

  • May 31, 2020
  • 2 replies
  • 5 views

I am trying to only show a question if a person's current age is equal to OR plus one their age during an event.

Without math, the equals part works fine. However, if I add the following math, it doesn't work:

If ${q://QID390/ChoiceGroup/SelectedChoices} Is Equal to $e{q://QID426/ChoiceGroup/SelectedChoices -1}

I've also tried making the second portion an embedded value, but that doesn't work either. If I pipe in the values into text, they look like what I"d expect.
Please help!

Best answer by TomG

You need spaces:
$e{ q://QID426/ChoiceGroup/SelectedChoices - 1 }

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • Answer
  • May 31, 2020

You need spaces:
$e{ q://QID426/ChoiceGroup/SelectedChoices - 1 }


  • Author
  • 1 reply
  • May 31, 2020

Thanks!