Hello,
I’m trying to build a quiz for which I want people to give me a number, and they have 3 tries to do that. I’ve created extra variable (@tries) set to 3 in the beginning, and logic rules so that I remove 1 when the answer given was wrong. Basically, if my answer is 14 :
- if answer = 14 then @score +1
if answer =14 then go to S1 “corect!” (and then next question)
if answer is not 14 then @tries -1
if answer is not 14 then go to S2 “wrong! you get @tries more tries to find out” - Then in S2, if @tries >0 then go back to question 1 / else, go to S3 “you loose, correct answer was 14”
The problem is that @tries is not decreasing, and I stay blocked at the same question for infinite numbers of tries, unless I find the correct answer .. How can I solve this?
Thanks a lot