Check if text is numeric

Get help using Construct 2

Post » Fri Jan 11, 2013 9:10 am

Is it possible to check if an input is numeric ?

ATM I send an Ajax Request to a php file there I check if the text is numeric or not... Is there a way to do that in Construct ? Found no expression for that.      
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Fri Jan 11, 2013 7:06 pm

Do a system compare:
Text.Text = str(int(Text.Text))
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Mon Jan 14, 2013 8:22 am

Thank you that's genius.

Text = Text -> to Int -> to String

Fuu = Fuu -> false -> false

1 = 1 -> 1 -> 1

B
15
S
6
G
6
Posts: 512
Reputation: 5,550


Return to How do I....?

Who is online

Users browsing this forum: Pandadoor, totoe, Zebbi and 15 guests