# \[Solved\] What does Local storage's get method return if there is no value saved in the key?

**URL:** https://community.thunkable.com/t/solved-what-does-local-storages-get-method-return-if-there-is-no-value-saved-in-the-key/27169
**Category:** Questions about Thunkable X
**Tags:** solved, beginner
**Created:** [May 16, 2018, 1:22pm UTC](https://community.thunkable.com/t/solved-what-does-local-storages-get-method-return-if-there-is-no-value-saved-in-the-key/27169 "2018-05-16T13:22:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![11161](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/11161/32/24089_2.png) [@11161](https://community.thunkable.com/u/11161)
#### Post date: [May 16, 2018, 1:22pm UTC](https://community.thunkable.com/t/solved-what-does-local-storages-get-method-return-if-there-is-no-value-saved-in-the-key/27169/1 "2018-05-16T13:22:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/2/329f18f6d84d15e23ab95446fe5aa93438f33d43.png)  
What does it return if there is nothing saved in the key? null? An empty string? 0? Or False?

---

<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: [May 16, 2018, 1:44pm UTC](https://community.thunkable.com/t/solved-what-does-local-storages-get-method-return-if-there-is-no-value-saved-in-the-key/27169/2 "2018-05-16T13:44:26Z")

</div>

Return “null”. More precisely: returns a null object whose string representation is “null”

![return](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/b/0b76c8d40084252f3654c2b4b85ed6b9c8d4780b.png)

---

<div class="post-metadata">

### Author: ![Leito](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@Leito](https://community.thunkable.com/u/Leito)
#### Post date: [July 15, 2020, 9:26am UTC](https://community.thunkable.com/t/solved-what-does-local-storages-get-method-return-if-there-is-no-value-saved-in-the-key/27169/3 "2020-07-15T09:26:17Z")

</div>

Em that blocks didnt work for me, I tried everything, “null” string logic null. false, empty string

anything works

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [July 28, 2020, 2:05pm UTC](https://community.thunkable.com/t/solved-what-does-local-storages-get-method-return-if-there-is-no-value-saved-in-the-key/27169/4 "2020-07-28T14:05:25Z")

</div>

Did you try outputting the value to a label?

---

<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:02pm UTC](https://community.thunkable.com/t/solved-what-does-local-storages-get-method-return-if-there-is-no-value-saved-in-the-key/27169/5 "2024-11-08T12:02:47Z")

</div>


