# How to code image quiz?

**URL:** https://community.thunkable.com/t/how-to-code-image-quiz/1087373
**Category:** Questions about Thunkable X
**Created:** [February 8, 2021, 9:14pm UTC](https://community.thunkable.com/t/how-to-code-image-quiz/1087373 "2021-02-08T21:14:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![newone](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@newone](https://community.thunkable.com/u/newone)
#### Post date: [February 8, 2021, 9:14pm UTC](https://community.thunkable.com/t/how-to-code-image-quiz/1087373/1 "2021-02-08T21:14:18Z")

</div>

Hello, I am new to Thunkable and trying tio create an app for the first time. I chose four images and question is to find the correct answer from 4 options. I made the blocks. But when I run to test, I see only one picture and nothing else. Why is it so? Thanks

 ![IMG_20210208_220955034](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0ce8def1b9c6ff3ff765b16329bd3450fa42884c.jpeg)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [February 8, 2021, 9:43pm UTC](https://community.thunkable.com/t/how-to-code-image-quiz/1087373/2 "2021-02-08T21:43:39Z")

</div>

Does your app change the value of the label when you click on an image?

Part of the problem is that you’re not storing the result in a variable. Initialize a variable called something like “correct” and leave its value blank.

Then, when the user clicks on an image, change the value of the “correct” variable to true or false. Variables keep their values between different screens. Labels do not.

Then, on the second screen, you can check the value of the variable to see if the user chose the right image.

---

<div class="post-metadata">

### Author: ![newone](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@newone](https://community.thunkable.com/u/newone)
#### Post date: [February 9, 2021, 8:26pm UTC](https://community.thunkable.com/t/how-to-code-image-quiz/1087373/3 "2021-02-09T20:26:27Z")

</div>

Thanks!! I’ve not used variables in coding yet. I´ll try. Let’s see how it comes. Thanks for your great help.

---

<div class="post-metadata">

### Author: ![secondaryaccount](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/secondaryaccount/32/91441_2.png) [@secondaryaccount](https://community.thunkable.com/u/secondaryaccount)
#### Post date: [February 10, 2021, 12:00am UTC](https://community.thunkable.com/t/how-to-code-image-quiz/1087373/4 "2021-02-10T00:00:23Z")

</div>

You’re welcome! You won’t get very far in coding without variables. @darren has some great tutorials for Thunkable.

Try this one as a starting point:

[![](https://img.youtube.com/vi/-7NHaSJACp8/maxresdefault.jpg "How to Initialize, Set, and Display Variables in Thunkable X") ](https://www.youtube.com/watch?v=-7NHaSJACp8)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/how-to-code-image-quiz/1087373/5 "2024-11-08T13:29:32Z")

</div>


