Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
"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
isalpha, isascii, iscntrl, isdigit, iseoln, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]