ROPE Language Reference - "isalnum"

"isalnum" pops a single string off the stack and checks whether every character it contains is alphanumeric (either a letter or a number). If so: 1 (true) is pushed back onto the stack, otherwise 0 is pushed back.

As a special case: if the string is empty, the return is 0.

Example:

 "Hello" isalnum println        # -- prints: 1
 "COFFEE" isalnum println       # -- prints: 1
 "COF90" isalnum println        # -- prints: 1
 "COF 90" isalnum println       # -- prints: 0
 isalnum( "ABC" ) println       # -- prints: 1
 isalnum( "ABC" "DEF" ) println # -- error! too many arguments
 239 isalnum println            # -- error! not a string

See Also

isalpha, isascii, iscntrl, isdigit, iseoln, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit