The strings
data type represents a list
that consists entirely of string
s.
Every single value, piece of data, list, or object can be converted to a strings
in some way. A list will be converted to a list of the individual element
s as string
s. A single value, piece of data, or object will be converted to a single-element list of that variant as a string
.
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.