Hello,
I have a list of questions with the corresponding answers in a table.
The app asks you a question if correct it goes to the next question. If incorrect it repeats the question.
I would like the app instead to go to the next question BUT remember the questions that are wrong.
When the app reaches the end of the table it should check if there were any wrong answers and ask them in order.
My initial idea was to store the wrong answers in a new table and have the app check if the “wrong answertable” had any entries when the questions where done. If so it would go through the wrong questions and ask them.
Problem is if you answered wrong again It would have to place those answers in a new table again creating an endless amount of wrong answer tables.
So now I am guessing I could try removing the right answers from the table and keeping the wrong ones in there. So at the end you either have an empty table or a table with just the wrong answers.
But I have no idea on how to keep iterating through the table until the last entry. I only know how many entries there are the first run through. The second run could be anything.
I am really bad with tables so this is starting to give me a headache. The fact that I am new to lua doesn’t help either.
Well thanks for reading through this long question/post. [import]uid: 100901 topic_id: 20107 reply_id: 320107[/import]