Multiple choice quiz using google sheets

I am creating a quiz everything runs perfectly except the score. The quiz has 1 label that displays the questions and 4 buttons with the answers. The buttons are named Answer_1, Answer_2... Answer_4 . When the user clicks any of those buttons I'm running an if to test if the answer the user gave is the same as the correct answer, if it's the same then the score increases by one. But when I'm displaying the score on the next screen it stays 0. Here is the code of the 2 screens.


image

You cannot do this, which is why you see the red cross.

Initialise the variable as a number or text, then set the value from tinydb inside an event.

how do I do that?

You can initialize global user score to 0 and when results screen initialize set global variable to get value from tinyDB