Data Types

colours

Supported By

Description

The colours data type represents a list that consists entirely of colors.

Notes

In order to use lists properly, you must declare your variables to be a kind of list. If a list is put into a variable that is undeclared, or declared to be a type other than a kind of list, the list will be converted to a single string. For example:

put (1,2,3,4) into steve
put the number of elements in steve

will print 1 because steve has only one element: the string "1,2,3,4". However, this example:

local steve as numbers
put (1,2,3,4) into steve
put the number of elements in steve

will print 4 because steve has four elements: the numbers 1, 2, 3, and 4.

Synonym

colors