# Set button disable to false if the user has done other tasks in the app

**URL:** https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [September 16, 2021, 1:49am UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944 "2021-09-16T01:49:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![funmathforkids](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@funmathforkids](https://community.thunkable.com/u/funmathforkids)
#### Post date: [September 16, 2021, 1:49am UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944/1 "2021-09-16T01:49:16Z")

</div>

![image_2021-09-15_194025](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/1/51dc5fc8efe5a1f7c31d50db1ee9cf5085c8ffe3.png)

Hi, boys! I appreciate your time, I will be more than happy if you can help me with this issue.

I want my students to make an exam (red button) only if they already have practiced at least once every assignment (green button) but I am not sure how to do that.

I’ll stay tuned. Thank you.

---

<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: [September 16, 2021, 2:03am UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944/2 "2021-09-16T02:03:44Z")

</div>

You can store values in Thunkable in [variables](https://docs.thunkable.com/variables) or [databases](https://docs.thunkable.com/data-sources). So when a button is pressed or an assignment is completed, you can change a corresponding value. Then, when the red button is pressed, you can check the value of those variables/database cells and decide whether or not to navigate to a new screen.

By the way, not everyone here is a boy so you may want to use non-gendered greetings like “Hi everyone!”

I’m a teacher so I’m curious… what age students do you teach? Is it during the school day or after school or a camp?

How familiar are you with programming? Have you looked through the documentation and built-in tutorials to learn how to use Thunkable?

---

<div class="post-metadata">

### Author: ![funmathforkids](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@funmathforkids](https://community.thunkable.com/u/funmathforkids)
#### Post date: [September 16, 2021, 4:33am UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944/3 "2021-09-16T04:33:45Z")

</div>

![image_2021-09-15_222732](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4b663c132038520e3a64b9d7cfe8bdb5fc9c7a99.png)

I have a code in C++  
Let us say you are practicing adding. You will be able to take the test once you have practiced each task  
The variable is set to 0 by default, when you practice the task, the variable is changed to 1 and the test will be shown when every variable is set to 1

1. _adding_ one-digit numbers (ExamenSumas1 is the name of the variable)
2. _adding_ two-digit numbers (ExamenSumas2)
3. _adding_ three-digit numbers (ExamenSumas3)
4. _adding_ four-digit numbers (ExamenSumas4)

but I do not know why I cannot use other variable but ExamenSumas1

I am a fourth grade teacher in San Pedro Sula, Honduras.

---

<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: [September 16, 2021, 4:40am UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944/4 "2021-09-16T04:40:21Z")

</div>

You can use the `Initialize` block in the Variables drawer to add as many variables as you like.

I teach Kindergarten through 8th grade in our makerspace… woodworking, robotics, 3D printing, design, etc. I love 4th graders! A fun age.

---

<div class="post-metadata">

### Author: ![funmathforkids](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@funmathforkids](https://community.thunkable.com/u/funmathforkids)
#### Post date: [September 16, 2021, 4:44am UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944/5 "2021-09-16T04:44:12Z")

</div>

You have a lot of experience in teaching. I have worked with teenagers ( physics for 10th and 11th) but since I moved to another city (and another school) I work now with kids. I really thank you for your help. It means a lot to me.

---

<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: [September 16, 2021, 5:56am UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944/6 "2021-09-16T05:56:58Z")

</div>

You’re welcome. This is my 21st year of teaching. I love my job!

Today, I was helping 7th graders to carve their own spoons from blocks of wood.

---

<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:15pm UTC](https://community.thunkable.com/t/set-button-disable-to-false-if-the-user-has-done-other-tasks-in-the-app/1507944/7 "2024-11-08T13:15:15Z")

</div>


