A list is an ordered set of values that are indexed numerically, starting with zero (0). The value assigned to a member of a list can be any value regardless of whether it is variable, constant value, a table, a list, or other value type. The list() function initializes the variable type to be of type list. An example is:
x = list();
Using this syntax, the list is empty.
There are three methods to add members to a list.
The first method is:
x = list(<value_1>,<value_2>,<value_3>,...,<value_n>);
The second method specifies an index and assigns a value. This method can also be used to change the existing value of a member in a list.
x = value_1; x = value_2;
The third method appends the value to the list. Using this method, ASL keeps track of the index value.
x += value_1;