TypeID
Description
Gets the associated type ID of the variable. Unlike type, this does not work with no value - an argument must be provided.
This will return
TYPE_TABLE
for Color objects.All subclasses of Entity will return
TYPE_ENTITY
.This returns garbage for _LOADLIB objects.
This returns
TYPE_NIL
for protos.Arguments
Returns
Example
Check the variable return on a few types.
Output: 4 (TYPE_STRING)
6 (TYPE_FUNCTION)
5 (TYPE_TABLE)
3 (TYPE_NUMBER)
1 (TYPE_BOOL)
Example
Show output of a vararg.
Output: 3 (TYPE_NUMBER)
4 (TYPE_STRING)
4 (TYPE_STRING)
3 (TYPE_NUMBER)
5 (TYPE_TABLE)