[Solved] Issues with > and < blocks in logic

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
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.

Hi, @Patrick_Elisha! :wave:

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

These blocks could help you -

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 :slight_smile:
Thanks! :blush:

4 Likes

Thank you, your solution helps.

1 Like

Thanks, @Patrick_Elisha! :smile:

Please mark my post as Solution :white_check_mark: , then it will mark the topic as Solved in the Community :+1:

Thanks! :blush:
Happy Thunking! :tada:

1 Like