string.nthChar
| Syntax |
string.nthChar (string, index)
|
| Params |
string is the string from which you wish to extract a character by position.
index is a number indicating the position in string where the character you wish to extract is located.
|
| Action |
Extracts the character appearing at position index in string.
|
| Returns |
The resulting character.
|
| Examples |
string.nthChar ("Deadhead", 6)
» 'e'
"[" + string.nthChar ("Deadhead", 55) + "]"
» "[]"
Note that if you use an index value larger than the length of string, the verb returns the empty string.
|
| See Also |
string.mid
|
|