so basically I have some input options for the user, where only numbers should be accepted, otherwise the user will be warned that his input was incorrect.
input is considered String when I read it with a callback. now I want to check if the string (which SHOULD contain numbers) ONLY contains numbers, but I have not found a solution already implemented. I tried
theString isInteger
- never true for string
theString asNumber
- ignores letters, but I want clear output characters to be entered in the string, and not
theString isNumber
- always false
source
share