With this app, the user steps through a series of questions, clicking a Next button to proceed. The user enters an answer for each question and the app reports whether the answer is correct or not. You'll learn about lists and iterating through a list using an index.
View in book formTo start, just define a QuestionList with some questions, and show the first question in a label using SelectItemFromList
Add an variable named index. When the Next button is clicked, increment index and select the indexth item to show in label.
Add an if-block so that index doesn't get too big. "Watch" the index variable to debug your app.
Change the behavior so that when the user clicks "Next" while on the last question, the first question appears. Also, use list length so that app works with any number of questions.
Load the images files you want then create another list with the file names in them. Add an image component and set its image file as user progresses through quiz.
Add a textbox and button. When the button is clicked, check the user's answer (textbox) compared to the current answer.