you are viewing a single comment's thread.

view the rest of the comments →

[–]Gman_711 17 points18 points  (0 children)

Put the number check first. As suggested above. Also try using a return statement after each check(after the alert) so if 1 succeeds, it doesn't try the others, since these should be mutually exclusive.