Read Me - Common Public License V1.0 - Copyright Notice(©)

wordLength


>>-wordLength(n)-----------------------------------------------><

Returns the length of the [n] th whitespace-delimited word in the receiving string or 0 if the receiving string has fewer than [n] words. The [n] must be a positive whole number.

String class - wordLength method

"Now is the time"~wordLength(2)       ->    2
"Now comes the time"~wordLength(2)    ->    5
"Now is the time"~wordLength(6)       ->    0

Read Me - Common Public License V1.0 - Copyright Notice(©)