Skip to main content
Answered

Showing different text variable based on other variable

  • Jan 27, 2023 2:56 PM UTC
  • 4 replies
  • 170 views

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
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Jan 27, 2023 7:00 PM UTC

Hi @upright The post below may help you out! 

 


  • Author
  • Explorer
  • Jan 28, 2023 1:26 AM UTC

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
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Answer
  • Jan 30, 2023 3:09 PM UTC

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
  • Feb 3, 2023 4:00 PM UTC

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 😊