Ilk

From Director Online Wiki
Jump to: navigation, search

ilk() is a Lingo function that determines the type of a variable.

Syntax:

ilk(variable) or variable.ilk

returns the [[[type]] of the variable as a symbol. See the type entry for a full list of variable types.

ilk(variable, type)

returns true or false depending on whether the variable is of the type indicated.


Examples:

testList = [1,2,3,4]
put testList.ilk
-- #list