Comparing CSV Index

Hello, so I want to compare the user answer (from button, multiple choices)

So, if the user answered one wrong, I want the user to retry the attempt until they get all the answer correct. With blocks like in the picture, I can't get the comparison blocks to work, both buttons still appear. Thank you

Please study below recent effort on similar work by @ABG

Names are important.

Your variable names lack the important vitamin 'Of'.

'index' might be renamed to 'indexOfQuestionInListAnswer' or
to 'indexOfResponseInCurrentQUestionsAnswers', or you might need extra variables with those names to keep them separate.

You are missing an important list block 'select item from list' in your 'if/then' test, maybe because you did not have the proper variable(s) to use in it.

Now would be a good time to go back into the Designer to rename:
Button5 to btnRetry
Button6 to btnNextQuestion
Label2 to lblTryAgain
(life is too short to have to read comments to figure out what ButtonNNN does.)

Names are important:

2 Likes

Thank you guys, it's working. And thank you for the naming problem really appreciate that!

1 Like