[] | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Summary | The square bracket characters [ ] surround the element name in an array reference. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: element Operator: () Command: split Function: arrayEncode Glossary: array, variable, error, key |
Description | Use square brackets [ ] to specify which element in an array you are referring to. You access an element of an array by using the name of the array, along with the key in square brackets:
Square brackets must be used in pairs, each [ with a matching ]. Using a single square bracket does not cause an error, but the bracket is interpreted as part of the variable name, rather than as the marker for the key of an array reference.
|
Tags | properties |