PURPOSE: Determine the type of data stored or referenced by a variable.
SYNTAX: [data:Anything] call funGetType
RETURNS: Integer type of data
-1 case data does not exist (undefined)
0 case data was a Boolean value
1 case data was a null group
2 case data was a null object
3 case data was a Side
4 case data was a CharArray
5 case data was an Array
6 case data was a Number
7 case data was an Object
8 case data was String
9 case data was a Group
DESCRIPTION: The funGetType function takes 1 parameter in an array and is used to detect the type of data stored or referenced in the parameter.
EXAMPLES:
[grpNull] call funGetType => 1
[[1,2,[3]]] call funGetType => 5
[["a","b"]] call funGetType => 4
[garbageUndefined] call funGetType => -1
HISTORY: CoC bn880 and Dinger 14/11/2003
DEPENDENCIES: CoC_LIBNUMSYS, CoC_LIBNETWORK