TypeID
Description
Gets the associated type ID of the variable. Unlike type, this does not work with no value - an argument must be provided.
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)