The Word function returns the Nth word in a string. Words are separated by spaces.
Note: punctuation characters that are adjacent to the selected word will also be returned.
|result = Word( string, n )|
say Word( 'what is your favorite word?', 5 ) -- shows: word?
say Word( 'what is your favorite word?', 6 )'_' -- shows: _
say Word( 'let us not quibble over a word or two', 4 ) -- shows: quibble
Click here to see how the words within a string can be assigned to a set of compound variables.