Guide for checking if text is number

A guide to check if it is number or not

Try This-

Now working with no error!

2 Likes

please tell if this guide was helpful!

very helpful
take this
:tada:

i guess the topic name isnot suitable

1 Like

thank you for comment @eko.devs.apploroceo

Interesting approach. Here’s what I’d do to determine if a value is a number:

If you multiply a text string by zero you’ll get NaN or possibly null. If you multiply any number by zero, you’ll get zero.

4 Likes

this is also a good way to check if is number in less blocks
nice @tatiang

Thanks. One drawback of your approach is that I’m pretty sure if the last character in the text string is a number, it will evaluate the entire string as a number. So these would all be numbers:

4
29
heythere29
M8

You’d need a variable that counts the number of found numeric digits/characters and then compares that to the length of the string.

2 Likes

ok thanks

i have updated the image now its working

now working with no error!

now topic seems ok

1 Like

Thanks :>

1 Like

your welcome @vanilla0bean
glad you liked it

Is 123.786 a number?
Is -67 a number?

You and your outliers! :laughing:

Me and my maps!

1 Like

if you want to add . and -
just add it in the list of numbers

I used this logical check : If (Text_input + 0 not equals to Text_input) then Alert message "input is not a number