Difference between revisions of "LIST STAT NUM COUNT"
Jump to navigation
Jump to search
(New page: {{LSL Constant |name=LIST_STAT_NUM_COUNT |type=integer |value=8 |desc=Retrieves the number of float and integer elements. |pa= |text= |pb= |examples |constants= <!--{{LSL ConstRow|CHANGED_...) |
m (<lsl> tag to <source>) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
|text= | |text= | ||
|pb= | |pb= | ||
|examples | |examples=<source lang="lsl2">list mixedList = [5, 35.3, <1,2,3>, "42", "Hello"]; | ||
float num = llListStatistics( LIST_STAT_NUM_COUNT, mixedList ); | |||
< | //num == 2.0</source> | ||
|constants | |||
|functions= | |functions= | ||
{{LSL DefineRow||[[llListStatistics]]|}} | {{LSL DefineRow||[[llListStatistics]]|}} | ||
|events | |events | ||
|location | |location | ||
|cat1 | |cat1 |
Latest revision as of 15:58, 23 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer LIST_STAT_NUM_COUNT = 8;The integer constant LIST_STAT_NUM_COUNT has the value 8
Retrieves the number of float and integer elements.
Caveats
Related Articles
Functions
• | llListStatistics |
Examples
list mixedList = [5, 35.3, <1,2,3>, "42", "Hello"];
float num = llListStatistics( LIST_STAT_NUM_COUNT, mixedList );
//num == 2.0