Availability
This routine is available starting with katl-commons 1.0.
Syntax
isAlpha(str)
Description
Returns true if the provided argument str is a string containing only letters.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
str | string | Yes | Specifies a character expression. |
Return type
boolean (true/false)
Example
Example 1
wret = isAlpha("foobar"); print(wret);
Print true
Example 2
wret = isAlpha("aaa2345f.ff"); print(wret);
Print false
Example 3
wret = isAlpha("Once upon a time ... ! "); print(wret);
Print false
Notes
IsAlpha returns false if the character string str contains blanks or special characters.
See also