Create two new Variables called “Score” and “CorrectAnswers”:
If you didn’t include the CorrectAnswers Variable, the user would be able to cheat by clicking on the right answer again and again to gain extra points!
To add scoring to the AfterPicking event, insert another If...Then... block.
The If Statement should say “If the user has not answered the question correctly before, then increase the score by one, change the Score Label text and update the CorrectAnswers Variable.”
See the example below:
Test the code now! Your app now keeps score!