# Change two variables

**URL:** https://community.thunkable.com/t/change-two-variables/788747
**Category:** Questions about Thunkable X
**Created:** [September 2, 2020, 10:46pm UTC](https://community.thunkable.com/t/change-two-variables/788747 "2020-09-02T22:46:06Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![pluc](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@pluc](https://community.thunkable.com/u/pluc)
#### Post date: [September 2, 2020, 10:46pm UTC](https://community.thunkable.com/t/change-two-variables/788747/1 "2020-09-02T22:46:06Z")

</div>

Hello everyone! Can you help me?  
I am creating an app to know who has the key.

 ![1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/b/cb62b8362cd85efa0ce7b44c9e9cc284a806bee6.png)  
As you can see in the first image, I put the name on top. If I enter the name Jack, this word is saved below.  
the phrase “Sei in possesso della chiave” means in English “You have the key”.  
So Jack is the current person who is in possession of the key, while the phrase “Chi ha preso la chiave prima di te?” means in English “Who took the key before you?”, so Kate is the previous person of Jack who took the key.  
If I click Back at the bottom right and then return to this page I find the name Jack repeated twice (see second image).  
 ![2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/481a66eb712141e92475abc9177ba81c7311fd4a.png)  
Why does this happen?  
I insert my code, third image.  
 ![3code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/2/b2c15ec5054f3d292290ddd5e0fdae720be857d5.png)  
To understand this, the word “attuale1SUP” is Jack while the word “precedente1SUP” is Kate.  
I hope I have explained myself well!!  
I don’t understand where the issue is

---

<div class="post-metadata">

### Author: ![DuMonster](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dumonster/32/81287_2.png) [@DuMonster](https://community.thunkable.com/u/DuMonster)
#### Post date: [September 3, 2020, 5:17am UTC](https://community.thunkable.com/t/change-two-variables/788747/2 "2020-09-03T05:17:25Z")

</div>

I’m not sure if I understand but are these blocks I’ve circled supposed to be the same variables?

 ![b2c15ec5054f3d292290ddd5e0fdae720be857d5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a66b80ffdd025a098f6894b95a445a5ae1146679.png)

---

<div class="post-metadata">

### Author: ![pluc](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@pluc](https://community.thunkable.com/u/pluc)
#### Post date: [September 3, 2020, 11:35am UTC](https://community.thunkable.com/t/change-two-variables/788747/3 "2020-09-03T11:35:06Z")

</div>

Aaaaaahhhhhhhhh!!! Now the code works!!! Thank you very much!!  
Sorry, the mental fatigue ! 😩

---

<div class="post-metadata">

### Author: ![pluc](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@pluc](https://community.thunkable.com/u/pluc)
#### Post date: [September 7, 2020, 9:42pm UTC](https://community.thunkable.com/t/change-two-variables/788747/4 "2020-09-07T21:42:02Z")

</div>

how do I try the app on a tablet that has android version 4.02? Through Thunkable Classic?

---

<div class="post-metadata">

### Author: ![DuMonster](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dumonster/32/81287_2.png) [@DuMonster](https://community.thunkable.com/u/DuMonster)
#### Post date: [September 8, 2020, 1:36am UTC](https://community.thunkable.com/t/change-two-variables/788747/5 "2020-09-08T01:36:13Z")

</div>

you should be able to just download the thunkable live app on the tablet for testing purposes

_ **Edit:** _ I don’t have a device with that version of android so this suggestion is an assumption

> <https://play.google.com/store/apps/details?id=com.thunkable.live&hl=en_US>
>
> Thunkable is the platform where anyone can build their own apps on Android and iOS. 
> 
> Use the Thunkable app to accelerate app development with a cool feature called live testing. Live testing is the ability to change and update your app in real-time with the changes you make on the platform (x.thunkable.com)
> 
> Just login to the app and see your changes live!
> 
> If you think it, you can Thunk it...

---

<div class="post-metadata">

### Author: ![pluc](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@pluc](https://community.thunkable.com/u/pluc)
#### Post date: [September 14, 2020, 3:11pm UTC](https://community.thunkable.com/t/change-two-variables/788747/6 "2020-09-14T15:11:41Z")

</div>

Thank you!! I tried but the tablet is too old that it doesn’t find this application. I had to get another tablet ☹  
One question: these variables can be stored in a database which is downloaded as a text file in the tablet, as an archive?  
Every day it stores everything in a database and downloaded to the tablet with the assegned date.

---

<div class="post-metadata">

### Author: ![DuMonster](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dumonster/32/81287_2.png) [@DuMonster](https://community.thunkable.com/u/DuMonster)
#### Post date: [September 14, 2020, 6:35pm UTC](https://community.thunkable.com/t/change-two-variables/788747/7 "2020-09-14T18:35:28Z")

</div>

> [@pluc](#):
>
> One question: these variables can be stored in a database which is downloaded as a text file in the tablet, as an archive?

Yes, you can save variables in a database.

The Local Storage component will allow you to save, and access files within a device.

 ![localstorage](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/235b9cb72d28424b61a84546a2b3aa592de515e8.png)

If you are wanting each user to have access to these, you could one of the cloud based databases available with Thunkable. See [HERE](https://docs.thunkable.com/data) for details on each.

---

<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, 12:23pm UTC](https://community.thunkable.com/t/change-two-variables/788747/8 "2024-11-08T12:23:58Z")

</div>



---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 19, 2024, 5:01pm UTC](https://community.thunkable.com/t/change-two-variables/788747/9 "2024-12-19T17:01:19Z")

</div>


