number | ||||||||||||||||||||||
Type | function | |||||||||||||||||||||
Dictionary | LCS | |||||||||||||||||||||
Library | LiveCode Script | |||||||||||||||||||||
Syntax |
| |||||||||||||||||||||
Synonyms | num | |||||||||||||||||||||
Summary | Returns the number of objects of a certain kind, or the number of chunks in a string. | |||||||||||||||||||||
Introduced | 1.0 | |||||||||||||||||||||
OS | mac, windows, linux, ios, android | |||||||||||||||||||||
Platforms | desktop, server, mobile | |||||||||||||||||||||
Parameters |
| |||||||||||||||||||||
Example |
| |||||||||||||||||||||
Values |
| |||||||||||||||||||||
Related | Property: backgroundBehavior, layer Control Structure: function Keyword: string, control, integer Object: stack Glossary: property, current card, return, group, nest, chunk, read-only, expression, non-negative, object Command: global, group Function: length | |||||||||||||||||||||
Description | Use the number function to find out how many of a thing there are. If you use the form The expression
is equivalent to:
The expression
returns the number of groups in the stack. The expression
returns the number of groups on the current card of the stack. Groups that are nested inside another group are not counted.
| |||||||||||||||||||||
Tags | text processing |