Score not decreasing

I am not able to get my score to decrease when the answer is incorrect.



What are the Elements of ListPicker1?

also, set a label's text 3 times in a for loop, is not a good idea.
image

These are screenshots for my elements.


In your trackScore procedure, you have if/then tests comparing ListPicker1.Selection against TRUE and FALSE.

The Selection is always one of the Elements, which you just showed us, none of which are TRUE or FALSE.

You are glossing over the comparison of answers to responses.

Maybe you need an extra global list to hold the user's responses, that you could check against the proper answers in your 8 item loop?

1 Like

Thanks! What do I change the TRUE and FALSE to? I am also wondering what I put in the global list to hold the user's responses.

The TRUE and FALSE you are seeking are the results of the comparisons between the actual user responses to the questions and the appropriate answers to thhe same questions.

That requires you to walk two lists simultaneously using the same index.

One list is the list of correct answers, by question number.

The other is the list of user answers, by question number.

Their Selections.

I already have a list of correct answers, but how do I make a list of the user answers? I also do not know how I would connect these lists to the procedure.

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

[FREE] QuizController with Report incase try this

CreateProject2.aia (7.9 KB)


CreateProject2 (1).aia (7.9 KB)

Using dictionaries and a lookup in pairs table makes this easier.

I also added a Title to the List Picker because I kept forgetting the question when looking over the answer options.