Data Types – Category

From Bohemia Interactive Community
Revision as of 16:21, 10 February 2021 by R3vo (talk | contribs) (→‎Available Types: Renamed to Availability per Game)
Jump to navigation Jump to search

The data type of a variable specifies which data it may contain. Certain operators and scripting commands require variables to be of certain types.

Definition

The data type of a variable depends on the value given to it on initialization.

myVar = ""; // myVar is now a String

a local variable should be prefixed with private (Arma 3) or local (Arma 2) to avoid a potential upper-scope variable overwrite:

private _myLocalVariable = "";	// Arma 3
local _myLocalVariable = "";	// Arma 2

Redefinition

The data type of a variable may be changed at any point of the game by just redefining the variable with another type.

myVar = "";	// myVar is a String
myVar = 0;	// myVar is now a Number

Availability per Game

Game Array Boolean Group Number Object Side String Code Config Control Display Location Script (Handle) Structured Text Diary Record Task Team Member Namespace HashMap HashMapKey
Logo A0.png? Checked Checked Checked Checked Checked Checked Checked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked
Logo A1 black.png? Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Unchecked Unchecked Unchecked Unchecked Unchecked Unchecked
Logo A2.png? Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Checked Unchecked Unchecked
Arma 3 logo black.png? Checked

Magic Types

There are some magic data types, which are not really datatypes, as they do not describe any particular value.

Syntactical Helper Types

Some more types are used to provide for a construction of syntactically richer constructs than normal unary / binary operators.

Subcategories

This category has the following 3 subcategories, out of 3 total.

A

M

Pages in category "Data Types"

The following 22 pages are in this category, out of 22 total.