string.isPunctuation
| Syntax |
string.isPunctuation (character)
|
| Params |
character is a single character enclosed in single or double quotation marks.
|
| Action |
Tells whether the specified character is punctuation or not.
|
| Returns |
True if the character is punctuation.
|
| Examples |
string.isPunctuation ('&') » true
string.isPunctuation ('a')
string.isPunctuation ('1')
|
| Errors |
Attempting to assign a multi-character string as character results in an error because Frontier cannot coerce a multiple-character string to be a character.
|
| Notes |
This verb returns true if the parameter is not a number or letter and is a visible, printable character, because it's a wrapper for the Standard C Library "ispunct" function. This verb also returns true for all high-ASCII characters (e.g. characters produced with the option key on Mac OS).
|
| See Also |
string.isAlpha
|