# Which to use? Null v Empty

**URL:** https://community.thunkable.com/t/which-to-use-null-v-empty/37306
**Category:** Questions about Thunkable X
**Created:** [July 24, 2018, 3:41am UTC](https://community.thunkable.com/t/which-to-use-null-v-empty/37306 "2018-07-24T03:41:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![compass1312](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@compass1312](https://community.thunkable.com/u/compass1312)
#### Post date: [July 24, 2018, 3:41am UTC](https://community.thunkable.com/t/which-to-use-null-v-empty/37306/1 "2018-07-24T03:41:56Z")

</div>

On first use of my app, I want to direct user to ScnIntro, on subsequent uses I want to direct user to ScnBuy. Obviously on first use no data has been input, so is non-existant. Do I use if value is null then do, or, if value is empty? Maybe it is too simple for me, but here are my blocks…

![nullvempty](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e40fac1e21863a396c4399f2d7dc1b53188b7e6b.png)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [July 24, 2018, 6:17am UTC](https://community.thunkable.com/t/which-to-use-null-v-empty/37306/2 "2018-07-24T06:17:20Z")

</div>

Check it

![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/2/a23a810d89d827cdc594ee8860d39564b6d27839.png)

---

<div class="post-metadata">

### Author: ![compass1312](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@compass1312](https://community.thunkable.com/u/compass1312)
#### Post date: [July 24, 2018, 9:48am UTC](https://community.thunkable.com/t/which-to-use-null-v-empty/37306/3 "2018-07-24T09:48:13Z")

</div>

Yes, I did it your way and it worked. However another problem has surfaced. On the next page a user has to enter a phone number, and that is saved. Using a similar technique, I check that the number is saved, and call/put it in a label on another page.

I then have to force stop the live app to go back to the first page to check everything has worked, and the phone number is not there. I downloaded an apk and installed it, all works well and number is resaved, but on next start, it is not there…

![numbergone](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/b/cba7767fa676140ef76761ed91488a9e5e9d23d3.png)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [July 24, 2018, 10:02am UTC](https://community.thunkable.com/t/which-to-use-null-v-empty/37306/4 "2018-07-24T10:02:26Z")

</div>

To start, try to make everything easier. Create an application in which a Local Storage is stored some value. Then restart the app and try to retrieve the stored value from the LocalStorade. If that works, then the problem with your algorithm.

---

<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:01pm UTC](https://community.thunkable.com/t/which-to-use-null-v-empty/37306/5 "2024-11-08T12:01:06Z")

</div>


