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

wordIndex


>>-wordIndex(n)------------------------------------------------><

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

String class - wordIndex method

"Now is the time"~wordIndex(3)    ->    8
"Now is the time"~wordIndex(6)    ->    0

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