Difference between revisions of "Category:LSL List"

From Second Life Wiki
Jump to navigation Jump to search
(merging list article into list category)
Line 6: Line 6:
List examples:
List examples:
<pre>[0,1,2,3,4], ["Yes","No","Perhaps"], [1,14.154,"Isn't this fun?",<0,0,0>]</pre>
<pre>[0,1,2,3,4], ["Yes","No","Perhaps"], [1,14.154,"Isn't this fun?",<0,0,0>]</pre>
A list can grow dynamically as large as needed during execution, and is only limited by the amount of memory that script has available.

Revision as of 19:01, 2 March 2007

A list is a special kind of data type which can contain zero or more elements of any other data type. Lists are signified by square brackets surrounding their elements, which are separated by commas.

List examples:

[0,1,2,3,4], ["Yes","No","Perhaps"], [1,14.154,"Isn't this fun?",<0,0,0>]

A list can grow dynamically as large as needed during execution, and is only limited by the amount of memory that script has available.