[] | |||||||
Type | operator | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns a sequence array formed from the provided list of element values. | ||||||
Introduced | 10.0 | ||||||
OS | mac, windows, linux, ios, android, web | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Keyword: element Glossay: operator Operator: {} Glossary: array, element | ||||||
Description | Use the [ ] operator to create a sequence array from a list of expressions. Each expression between [ and ] is evaluated and assigned to the next numeric index of the new sequence array, with the first index starting at one. Evaluation of the element expressions proceeds from left to right, given an equivalence between a sequence array building expression and explicit sequence of put statements. For example:
Is equivalent to:
Element expressions can be any constant or non-constant expression, including sequence array and dictionary array expressions. The list of element expressions may be followed by an optional comma which is ignored. Note:Due to allowing an optional trailing comma, element expressions in a sequence literal expression cannot be missing to indicate empty. |