Difference between revisions of "LIST STAT RANGE"
Jump to navigation
Jump to search
m |
m (<lsl> tag to <source>) |
||
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
|text= | |text= | ||
|pb= | |pb= | ||
|examples | |examples=<source lang="lsl2">float range = llListStatistics( LIST_STAT_RANGE, numList );</source> | ||
<source lang="lsl2">float max = llListStatistics( LIST_STAT_MAX, numList ); | |||
float min = llListStatistics( LIST_STAT_MIN, numList ); | |||
float range = max - min;</source> | |||
|constants= | |constants= | ||
<!--{{LSL ConstRow|CHANGED_SHAPE}}--> | <!--{{LSL ConstRow|CHANGED_SHAPE}}--> |
Latest revision as of 14:59, 23 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer LIST_STAT_RANGE = 0;The integer constant LIST_STAT_RANGE has the value 0
Calculates the range of the list. (max - min)
Caveats
Related Articles
Functions
• | llListStatistics |
Examples
float range = llListStatistics( LIST_STAT_RANGE, numList );
float max = llListStatistics( LIST_STAT_MAX, numList );
float min = llListStatistics( LIST_STAT_MIN, numList );
float range = max - min;