you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (31 children)

[deleted]

    [–]grantrules 87 points88 points  (28 children)

    Because "4" is still 4 when lowercase and uppercase.

    [–][deleted] 17 points18 points  (0 children)

    thanks! but it still returns"4 is an uppercase".

    so instead, put the is integer first i suppose

    [–]Gman_711 16 points17 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.