![]() |
| ||||||||||||||||||
![]() |
| ||||||||||||||||||
|
As lists are just variables with the same root name and a sequential number at the end,
the length of a list can be determined by counting the number of names that match a certain pattern. This is done by the
'count' function: MyList() = 4,8,5,2 for i = 1 to count MyList Print 'Element (i): (MyList(i))' Element 1: 4 Element 2: 8 Element 3: 5 Element 4: 2 If no variable name matches, 'count' returns 0 to indicate that the list is empty
/ does not exist.
| ||||||||||||||||||