How can I check that value entered in text box is a integer or a decimal value
Why not using the “is string” and the “is number” block?
I would do something like this :
You check if when you round the number, the number change, so it’s decimal
No you just check like this if it’s a number or a string, that’s not what he asked for
You may want to use
well, if the user just text for example 28. without indicating something after coma, it will be shown as a decimal, while it’s not really isn’t it?
if there is a full stop then it is not a number.
Tested, try this
It should return true we there’s nothing after “.”
well i think @TRICKY_MIND you have at least 2 solution
who is @TRICKY_MIND
The guy that created the subject
He is OP:
Well, you didn’t know his name but posted the solution. O-Ok…
… I forgot already
Edit I thought it is another guy lololloolool
It was my mistake
There are multiple solutions and this is one of them:
That was what I think of first but eventually I realize that you can simply use text component.
However the number shd be 1 not 0
Well tested, and it works fine for me.
How??? I quite do not understand what was your mistake…
I marked @WatermelonIce 's post as solution in confusion…
Don’t take this away from me