Functions Index :: V :: VarType
Module:
Definition:
VarType(val x)
Description:
Returns a distinct integer value depending on the type of the variable passed as argument (0 for undefined variables, 1 for clip, 2 for int, 3 for float, 4 for bool, 5 for string).
Useful for branching code execution based on argument's type.
Examples:
v0 = VarType(Undef()) # v0 == 0
v1 = VarType(BlankClip()) # v1 == 1
v2 = VarType(3) # v2 == 2
v3 = VarType(2.35) # v3 == 3
v4 = VarType(true) # v4 == 4
v5 = VarType("this is a string") # v5 == 5