Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
"isdigit" pops a string off the top of the stack and checks whether every character it contains is a numerical digit ("0" to "9"). 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" isdigit println # -- prints: 0 "1234" isdigit println # -- prints: 1 "COF90" isdigit println # -- prints: 0 isdigit( "981" ) println # -- prints: 1 isdigit( "123" "DEF" ) println # -- error! too many arguments 239 isdigit println # -- error! not a string
isalnum, isalpha, isascii, iscntrl, iseoln, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]