typeName anything

Operand types

anything: Anything

Type of returned value

Description

Returns the data type name of an expression.
Type is returned as a string.
Returned string can be one of:

* "ARRAY"
* "BOOL"
* "CODE"
* "CONFIG"
* "CONTROL"
* "DISPLAY"
* "GROUP"
* "OBJECT"
* "SCALAR"
* "SCRIPT"
* "SIDE"
* "STRING"
* "TEXT"

These represent the available data types in Arma.
An empty string is returned if the argument is not defined.

Used In

ArmA

Example

_message = "treacle"; _datatype = typeName _message;
Result will be "STRING".

_unitname = player; _datatype = typeName _unitname;
Result will be "OBJECT".
Search OFPEC COMREF