Using Director > Writing Scripts with Lingo > Using lists > Checking items in a list

 

Checking items in a list

You can determine the characteristics of a list and the number of items the list contains by using the following commands and functions.

To display the contents of a list, use the put command followed by the variable that contains the list. See put.

To determine the number of items in a list, use the count() function. See count().

To determine a list's type, use the ilk() function. See ilk().

To determine the maximum value in a list, use the max() function. See max().

To determine the minimum value in a list, use the min() function. See min().

To determine the position of a specific property, use the findPos, findPosNear, or getOne command. See findPos, findPosNear, and getOne().