Showing different text variable based on other variable | Community
Skip to main content
Answered

Showing different text variable based on other variable


Hi, I’m trying to make a survey which scores something.

And with the score, i want to show different text variable.

 

For example,

if @variable1 = 4, then ‘replace’ @variable2 = hi

if @variable1 = 0, then ‘replace’ @variable2 = hey

 

and i want to show current status of variable2 ‘hi’ or ‘hey’ in the middle of survey.

I’ve tried to apply logic like above i showed, it only gives ‘default’ value of @variable2, and it doesn’t ‘replace’ the text value. 

Please help

 

Best answer by Liz

Thanks, @upright ! One thing that might be good to look at first is the order in which you have placed the logic jumps, as this can make a significant difference. You can read more about ordering logic jumps here

When going through your logic jumps, do you happen to have any that might be better moved further down the list of logics (such as one that all respondents could match)?

View original

4 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14927 replies
  • January 27, 2023

  • Author
  • Explorer
  • 1 reply
  • January 28, 2023

Thank you for the fast reply.

my problem
previous method i used

This method was what i used. 

I’ve also tried the method from the post you gave.(“if qX response is a or b or c or…. then add qX response to sub_score_N” than the always statement)

 

new method

But even with the new method, i can’t replace the text variable @daily_show based on @daily_habit.

Please help.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14927 replies
  • Answer
  • January 30, 2023

Thanks, @upright ! One thing that might be good to look at first is the order in which you have placed the logic jumps, as this can make a significant difference. You can read more about ordering logic jumps here

When going through your logic jumps, do you happen to have any that might be better moved further down the list of logics (such as one that all respondents could match)?


Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • 2646 replies
  • February 3, 2023

Hey @upright happy Friday! Did you get a chance to check Liz’s message here yet? Let us know if you still need help with the logic 😊