# \[Solved\] How to detect a text box is empty

**URL:** <https://community.thunkable.com/t/solved-how-to-detect-a-text-box-is-empty/2220187>\
**Category:** Questions about Thunkable X\
**Created:** [January 13, 2023, 5:44am UTC](https://community.thunkable.com/t/solved-how-to-detect-a-text-box-is-empty/2220187 "2023-01-13T05:44:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)\
**Post date:** [January 13, 2023, 5:44am UTC](https://community.thunkable.com/t/solved-how-to-detect-a-text-box-is-empty/2220187/1 "2023-01-13T05:44:32Z")

</div>

I tried 5 different ways. All of them work on Web Preview but on my Samsung Android none work ☹

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/3/8350af28a0fa70ba48c11e17c58a2f7fcb0e05f9.png)  
Please help

---

<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:** [January 13, 2023, 6:11am UTC](https://community.thunkable.com/t/solved-how-to-detect-a-text-box-is-empty/2220187/2 "2023-01-13T06:11:16Z")

</div>

You’ll need to use the Logic blocks `true` and `false` instead of the Math blocks 1 and 0.

If 1 represented true (as it does in most programming languages), then this would display “1” in the label but it does not:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/54ee85d8d9cbd4afaaf62c100a410ced4d15e5c5.png)

This, however, does:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/8/38b5d45630570f8b28779e97ef86467e71715096.png)

---

<div class="post-metadata">

**Author:** ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)\
**Post date:** [January 13, 2023, 1:59pm UTC](https://community.thunkable.com/t/solved-how-to-detect-a-text-box-is-empty/2220187/3 "2023-01-13T13:59:49Z")

</div>

🙏 🙏 So silly of me I wasted time trying all possible things and returned wrong value 😀 😅. Web preview threw me off. Thanks Tatiang I am sailing again!!

---

<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:** [January 13, 2023, 2:47pm UTC](https://community.thunkable.com/t/solved-how-to-detect-a-text-box-is-empty/2220187/4 "2023-01-13T14:47:54Z")

</div>


