The Wordlength function returns the length of the Nth word in a string. Words are separated by spaces.
result = Wordlength( string, n ) |
Examples:
say Wordlength( 'what is your favorite word?', 5 ) -- shows: 5 (the length of: word?) say Wordlength( 'what is your favorite word?', 6 ) -- shows: 0 say Wordlength( 'let us not quibble over a word or two', 4 ) -- shows: 7 (the length of: quibble) |