Warning: file_put_contents(/ff_c00b2627c8830037dfd3f48813035e01ea93ced6a6bf80e6.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
typeName - OFPEC Scripting Command Reference | OFPEC The Editing Center

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".

Advertisement