element | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Summary | Used with the repeat control structure to specify that the statements in the repeat loop will be executed once for each element in an array. |
Introduced | 1.1 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: each, item, element Glossary: array, keyword, control structure Control Structure: repeat |
Description | Use the element keyword to perform an action on all the elements of an array. The word after the phrase for each element is a variable name. The value of each element is placed in this variable during that iteration of the repeat loop. The structure
is equivalent to
However, the first form, using the element keyword, is much faster. |
Tags | properties |