type = GetType(var)
#NUMBER, #STRING, #TABLE, #FUNCTION, #USERDATA,
#LIGHTUSERDATA, #THREAD und #NIL.
Dieser Befehl wird häufig verwendet, um herauszufinden, ob eine Variable Nil ist. Ab Hollywood 6.0 gibt es aber auch einen neuen Komfortbefehl namens IsNil(), die auch zum prüfen von Variablen auf Nil verwendet werden kann.
Siehe Data types für Details.
type = GetType("Hello World")
Dies wird #STRING zurückgeben.
type = GetType({1, 2, 3, 4})
Das gibt #TABLE zurück.
type = GetType(Function() DebugPrint("Hello") EndFunction)
Dadurch wird #FUNCTION zurückgegeben.