Add value to variable, whats wrong here? | Community
Skip to main content
Question

Add value to variable, whats wrong here?


Forum|alt.badge.img

Se attached image. The @fel-variable is still 0 after this. Why?

12 replies

Forum|alt.badge.img
  • Author
  • Explorer
  • 7 replies
  • April 16, 2024

The image don't work. But the logic is:

If A – @fel + 1
If A – go to [2]

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14858 replies
  • April 23, 2024

Hi @ErikKilstrom Apologies for missing this! Do you mind attaching the image again? I’m unable to see it. Thanks!


Forum|alt.badge.img
  • Author
  • Explorer
  • 7 replies
  • April 24, 2024

Hi Liz,

This is how it looks. But the variable @fel do not get any points added. It ramains 0. 

The thing I want to do is keep track on how many wrong answers you get in i Quiz. When you answer wrong to go to a page with this logic och the only choice you have is to go back to the question and change your answer..

 

 


Forum|alt.badge.img
  • Author
  • Explorer
  • 7 replies
  • April 24, 2024

Forgot to tag you @Liz :)

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14858 replies
  • April 24, 2024

Hi @ErikKilstrom Thank you! It looks like you’re trying to send the respondent backwards in the form, which is most likely causing the issue. Can you ensure that your respondent is only moving forwards? 


Forum|alt.badge.img
  • Author
  • Explorer
  • 7 replies
  • April 25, 2024

Hi @Liz ,

 

I want to let the respondent know if he answers the question wrong and then let them re-do the qustion. This logic works in my setup (se picture). But i would like to keep track of how many times they answer wrong (the veriable @fel). If you have another idea of how to solve this please let me know! :)

 

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14858 replies
  • April 25, 2024

Hi @ErikKilstrom Ah, got it. I’m afraid we don’t have an easy solution since looping a question doesn’t quite work with our scoring. 

@john.desborough did you create a workaround for this before? I can’t quite remember. 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5262 replies
  • April 25, 2024

@ErikKilstrom - can you show the logic on question 2 please. 

that will help me understand where to best place the logic rules. 

 

thanks

 

des


Forum|alt.badge.img
  • Author
  • Explorer
  • 7 replies
  • April 26, 2024

Hi @john.desborough ,

Se attached image. Can you add two if-things? 
If [A] or [C] – go to [3] AND add +1 to @fel? 

 

 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5262 replies
  • April 26, 2024

@ErikKilstrom - you should add the rule to add 1 to the variable if the wrong answer is received on q2 before it goes to q3… and remove the always add rule from q3

-on q2:

  • if A or C (assuming these are incorrect answers) add 1 the variable
  • if A or C  go to q3

des

 

 


Forum|alt.badge.img
  • Author
  • Explorer
  • 7 replies
  • April 26, 2024

I tryed this before and it does not work.. If you answer A or C then @fel is 1 on Q3. But when you go back and re-enter the answer on Q2 it changes the previous logic och @fel becomes 0 when you move to S2.. 

 


Forum|alt.badge.img
  • Author
  • Explorer
  • 7 replies
  • April 26, 2024

Forgot to tag you @john.desborough :)


Reply