type = GetType(var)
#NUMBER, #STRING, #TABLE, #FUNCTION, #USERDATA,
#LIGHTUSERDATA, #THREAD and #NIL.
This function is often used to find out if a variable is Nil. Starting with Hollywood 6.0, however, there is also a new convenience function named IsNil() which can also be used to check variables against Nil.
See Data types for details.
type = GetType("Hello World")
This will return #STRING.
type = GetType({1, 2, 3, 4})
This will return #TABLE.
type = GetType(Function() DebugPrint("Hello") EndFunction)
This will return #FUNCTION.