Can I detect if a text box has text or numbers?

I have a text box where the only valid input is a number, otherwise the program has to notify you that only numbers are accepted. I have tried to do the same as i did in Scratch (multiply the text by 1 and if the result is the same then it's a number) but the app returns an error. Does anyone know if there's any way to detect it?

Hello,

you have this block:
image

It will return true/false.

1 Like

Thank you!!

I had only looked in the text blocks :sweat_smile: :sweat_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.