Return if nonnumeric or zero?!
I'm trying to make this golfscorecard script and it is working allmost correct...
It counts the numbers as it should and if a user inserts a nonnumeric value like "-" it counts that as 11. Great. But I also want to count "0" as 11 but not sure how to do so...
Here is my script:
// Makes sure variable is a number
// forces variable into integer type
nmbr = (nmbr * 1);
// Checks if variable is Not a Number
// If a number, return value
// If not a number, return eleven
The full script can be testet at http://mdesigns.dk/autotab.php
Hoping for help and thanks in advance...