# Stored variable trouble

**URL:** <https://community.thunkable.com/t/stored-variable-trouble/1416636>\
**Category:** Questions about Thunkable X\
**Created:** [July 27, 2021, 12:55pm UTC](https://community.thunkable.com/t/stored-variable-trouble/1416636 "2021-07-27T12:55:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinet](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@martinet](https://community.thunkable.com/u/martinet)\
**Post date:** [July 27, 2021, 12:55pm UTC](https://community.thunkable.com/t/stored-variable-trouble/1416636/1 "2021-07-27T12:55:13Z")

</div>

hello i have got a trouble with my stored variable. once initialized with à 0 value, the stored variable still keeps the null value. here is a copy of my screen. Thanks by advance

 ![thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/058c8dddd95d4fb4b322145916063301c96b8a42.jpeg)  
Ben from France

---

<div class="post-metadata">

**Author:** ![overturner](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@overturner](https://community.thunkable.com/u/overturner)\
**Post date:** [July 27, 2021, 12:58pm UTC](https://community.thunkable.com/t/stored-variable-trouble/1416636/2 "2021-07-27T12:58:44Z")

</div>

You should use the set variable block this one  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/0/400b1c07cc9b9bb104b150be3891ceff9b166cd0.png)

---

<div class="post-metadata">

**Author:** ![martinet](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@martinet](https://community.thunkable.com/u/martinet)\
**Post date:** [July 27, 2021, 9:11pm UTC](https://community.thunkable.com/t/stored-variable-trouble/1416636/3 "2021-07-27T21:11:33Z")

</div>

Hello overtuner and many thanks for your answer.  
The thing is that i would like to store the result. if the resul is null or false i go to the connection screen. it it’s true i avoid the connection screen. 🙂

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 27, 2021, 9:29pm UTC](https://community.thunkable.com/t/stored-variable-trouble/1416636/4 "2021-07-27T21:29:39Z")

</div>

![Screenshot_20210728_002750](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a3f3f86b26083613934d4834872740ab4f217ef.jpeg)

This block that you are using is wrong. Change it to the block that says `Set stored variable connexion` to 0

---

<div class="post-metadata">

**Author:** ![martinet](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@martinet](https://community.thunkable.com/u/martinet)\
**Post date:** [July 28, 2021, 8:58pm UTC](https://community.thunkable.com/t/stored-variable-trouble/1416636/5 "2021-07-28T20:58:50Z")

</div>

thanks a lot it’s ok 🙂

---

<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:17pm UTC](https://community.thunkable.com/t/stored-variable-trouble/1416636/6 "2024-11-08T13:17:44Z")

</div>


