# \[Solved\] Issues with \> and \< blocks in logic

**URL:** <https://community.thunkable.com/t/solved-issues-with-and-blocks-in-logic/464350>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [February 14, 2020, 9:55am UTC](https://community.thunkable.com/t/solved-issues-with-and-blocks-in-logic/464350 "2020-02-14T09:55:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [February 14, 2020, 9:55am UTC](https://community.thunkable.com/t/solved-issues-with-and-blocks-in-logic/464350/1 "2020-02-14T09:55:09Z")

</div>

I have an unexpected result in my project comparing numbers so i made this simple app for closer investigation. Please check it out and use the following values: A: 40, B: 5

[https://x.thunkable.com/projects/5e4207496277be2cb7a330fc/35c1a8dd-58d1-444d-b80b-8e63765b0068/designer](https://x.thunkable.com/projects/5e4207496277be2cb7a330fc/35c1a8dd-58d1-444d-b80b-8e63765b0068/designer)  
The result is wrong. I guess the block removes the zeros at the end of the numbers before executing the command. What did I do wrong? How do I compare numbers?  
Please help.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [February 14, 2020, 10:06am UTC](https://community.thunkable.com/t/solved-issues-with-and-blocks-in-logic/464350/2 "2020-02-14T10:06:52Z")

</div>

Hi, @Patrick_Elisha! 👋

I think **today** an issue is coming while comparing numerals.  
An alike question was answered today by me - [[Solved] Problems with numbers from Labels - #4 by kartik14](http://community.thunkable.com/t/problems-with-numbers/463414/4)

These blocks could help you -

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/7/c73f6bfd468584c235b590e40b223d72dd42841c.png)

**What I did?**  
I just added a `<textInput(A/B)> + 0`. It doesn’t change the value of the textInput, but (I think) it converts the text to proper numbers, so we can compare.

Hope I helped you 🙂  
Thanks! 😊

---

<div class="post-metadata">

**Author:** ![Patrick\_Elisha](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/patrick_elisha/32/68464_2.png) [@Patrick\_Elisha](https://community.thunkable.com/u/Patrick_Elisha)\
**Post date:** [February 14, 2020, 10:21am UTC](https://community.thunkable.com/t/solved-issues-with-and-blocks-in-logic/464350/3 "2020-02-14T10:21:26Z")

</div>

Thank you, your solution helps.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [February 14, 2020, 10:35am UTC](https://community.thunkable.com/t/solved-issues-with-and-blocks-in-logic/464350/4 "2020-02-14T10:35:46Z")

</div>

### Thanks, @Patrick_Elisha! 😄

Please mark my post as Solution ✅ , then it will mark the topic as Solved in the Community 👍

Thanks! 😊  
Happy Thunking! 🎉

---

<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, 11:41am UTC](https://community.thunkable.com/t/solved-issues-with-and-blocks-in-logic/464350/5 "2024-11-08T11:41:00Z")

</div>


