word

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
word
Summary

Designates a space-delimited or quoted string as part of a chunk expression.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
get last word of the long name of this stack
put it
local tString
put "Apples, peaches, and pears." into tString
put word 2 of tString
--> peaches,
RelatedKeyword: byte, character, codepoint, codeunit, item, line, paragraph, segment, sentence, string, token, trueWord, words
Glossary: chunk expression, container, delimit, double quote, keyword, quoted, Unicode
Description

Use the word keyword to refer to one or more words in a container.

A word is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single word can contain multiple characters and multiple items, but not multiple lines.

Note: Words are delimited by double quotes ("), but not by curved quotes (“”). LiveCode does not treat curved quotes as quotes.

Note: To refer to actual words in a chunk expression, i.e., words delimited by Unicode word breaks, use the keyword trueWord.

Tagstext processing