Array: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Fix)
 
(61 intermediate revisions by 17 users not shown)
Line 1: Line 1:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{{TOC|side}}
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
An '''Array''' is a list of items of varying [[:Category:Data Types|variable types]] (including other arrays). Different types can coexist within the same array.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
See also: [[:Category:Arrays|Arrays]]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{{Feature|warning|Since {{arma3}} v1.56, arrays are limited to maximum of '''9,999,999''' (sometimes 10,000,000) elements.}}
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
== Working With Arrays ==
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Array Properties ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
An array variable is a '''reference''' to the array (see {{Link|https://en.wikipedia.org/wiki/Reference_(computer_science)|Wikipedia reference page}});
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
this means that if the array is edited, all the scripts/functions using a reference to this array will see the edition.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myNewArray = _myArray;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray set [1, "z"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myNewArray select 1; // will be "z"
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
An array set through [[setVariable]] does not need to be assigned again if you modify it by reference:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
player setVariable ["myArray", ["a", "b", "c"]];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = player getVariable "myArray";
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray set [1, "z"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
player getVariable "myArray"; // is ["a", "z", "c"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Array Creation ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// Example of an empty array
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count _myArray; // returns 0
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// Example of a filled array
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myFilledArray = ["abc", "def"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count _myFilledArray; // returns 2
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
An array can hold another array within it, that can hold another array itself, etc:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [["my", "subArray", 1], ["mySubArray2"], [["my", "sub", "sub", "array"]]];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count  _myArray; // returns 3
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count  (_myArray select 0); // returns 3
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count  (_myArray select 1); // returns 1
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count  (_myArray select 2); // returns 1
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count ((_myArray select 2) select 0); // returns 4
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Getting an element ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
An array uses a zero-based index for its elements:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["first item", "second item", "third item"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray select 0; // returns "first item"
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray # 2; // returns "third item" - Arma 3 only
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Setting an Element ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["first item", "second item", "third item"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray select 1; // returns "second item"
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray set [1, "hello there"]; // _myArray is ["first item", "hello there", "third item"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{{Feature | important | If the index given to the [[set]] command is out of bounds, the array will [[resize]] to incorporate the index ''as its last value''.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
All the "empty spaces" between the last valid element and the new [[set]] element will be filled with [[nil]]}}
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Counting elements ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["first item", ["second item's subitem 1", "second item's subitem 2"], "third item"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
count _myArray; // returns 3 - arrays are not counted recursively
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Changing array size ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The [[resize]] command is made to reduce or expand an array:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "d", "e"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray resize 3; // _myArray is ["a", "b", "c"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray resize 5; // _myArray is ["a", "b", "c", nil, nil]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{{Feature|important|You do '''not''' need to extend an array before adding any elements.}}
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Array Copy ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myNewArray = _myArray;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray set [1, "z"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myNewArray select 1; // will be "z"
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [["a", "b", "c"], ["d", "e", "f"]];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _subArray1 = _myArray select 0;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_subArray1 set [1, "z"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// _subArray1 is now ["a", "z", "c"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// _myArray is now [["a", "z", "c"], ["d", "e", "f"]]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
In order to avoid this behaviour, '''copy''' the array with [[+|+ (plus)]]:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// making copy
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myNewArray = +_myArray;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray set [1, "z"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myNewArray select 1; // still "b"
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
Sub-arrays are also deep-copied; {{hl|_myNewArray}} will not point at the same sub-array instances.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Adding (Appending) Elements ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
In {{arma3}} use [[append]] and [[pushBack]] commands:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray pushBack "d"; // _myArray is ["a", "b", "c", "d"] - pushback = add the element at the end
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray append ["e", "f"]; // _myArray is ["a", "b", "c", "d", "e", "f"] - append = pushback for each provided items
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
You could also use the [[+|plus (+)]] operator to add arrays.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The difference is that addition returns a copy of array and thus [[Code Optimisation#Adding elements |a little slower]] than [[append]] and [[pushBack]], which modify the target array.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray = _myArray + ["d"]; // _myArray is ["a", "b", "c", "d"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray = _myArray + ["e", "f"]; // _myArray is ["a", "b", "c", "d", "e", "f"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Removing (Deleting) Elements ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
In {{arma3}} the [[deleteAt]] and [[deleteRange]] commands are available:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "d", "e"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray deleteAt 0; // _myArray is ["b", "c", "d", "e"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "d", "e"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray deleteRange [1, 2]; // _myArray is ["a", "d", "e"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
You can also use the [[-|minus (-)]] operator to subtract arrays.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The subtraction returns array copy, just like addition, and is [[Code Optimisation#Removing elements|not as fast]] as [[deleteAt]] and [[deleteRange]] which modify target arrays.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "d", "e"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray = _myArray - ["a"]; // _myArray is ["b", "c", "d", "e"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
In {{arma3}} it became possible to also subtract nested arrays:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"]];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray = _myArray - [["d", "e", "f"]]; // _myArray is [["a", "b", "c"], ["g", "h", "i"]]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The subtraction will remove ''all'' elements of the second array from the first one:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>_myArray = ["a", "b", "c", "a", "b", "c"] - ["a", "b"]; // _myArray is ["c", "c"]</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The solution to this issue is the combined use of [[set]] and an item that you know is '''not''' present in the array:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "a", "b", "c"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray set [2, objNull]; // _myArray is ["a", "b", objNull, "a", "b", "c"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray = _myArray - [objNull]; // _myArray is ["a", "b", "a", "b", "c"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
Using this technique, it is possible to mimic [[deleteRange]] behaviour this way:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "d", "e"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{ _myArray set [_x, objNull] } forEach [1, 2]; // _myArray is ["a", objNull, objNull, "d", "e"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_array = _array - [objNull]; // _myArray is ["a", "d", "e"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Going Through the Array ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The simplest way to iterate through an array is the [[forEach]] command:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "d", "e"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{ systemChat _x } forEach _myArray;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
A combination of [[for]], [[count]] and [[select]] can also be used:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["a", "b", "c", "d", "e"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
for "_i" from 0 to (count _myArray) -1 do { // count returns 5, but it is a zero-based index
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
systemChat (_myArray select _i);
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
};
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
== Advanced Usage ==
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== apply ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
Similar to the {{Link|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map|"map" function in Javascript}},
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
[[apply]] allows to apply code to every elements in an array and return a copy:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [1, 2, 3, 4, 5];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray = _myArray apply { _x * 2 }; // _myArray is [2, 4, 6, 8, 10]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// same as (but faster than)
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray = + _myArray;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
for "_i" from 0 to count _myArray -1 do
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _element = _myArray select _i;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray set [_i, _element * 2];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
};
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== select ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
A simple way to filter an array (and obtain a new one) is using [[select]]'s alternative syntax:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [1, 2, 3, 4, 5];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _filteredArray = _myArray select { _x > 3 }; // _filteredArray is [4, 5]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// same as
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _filteredArray = [];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{ if (_x > 3) then { _filteredArray pushBack _x } } forEach _myArray;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== findIf ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The [[findIf]] command was introduced in {{arma3}} and allows you to go through the whole list and stop '''as soon as the condition is met''', returning the condition-meeting element's array index:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [1, 2, 3, 4, 5];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray findIf { _x == 3 } > -1; // returns true, meaning there is an element that equals 3
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray findIf { _x == 6 } > -1; // returns false, meaning there is no element that is equal to 6
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
You could use [[count]] to achieve the same result, however [[count]] won't stop until it iterated through the whole array, so it might take [[Code Optimisation#findIf|longer]].
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [1, 2, 3, 4, 5];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{ _x == 3 } count _myArray > 0; // returns true, meaning there is an element that equals 3
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{ _x == 6 } count _myArray > 0; // returns false, meaning there is no element that is equal to 6
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== arrayIntersect ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The [[arrayIntersect]] command returns a new array filled with the items found in both provided lists:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _array1 = [1, 2, 3, 4];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _array2 = [3, 4, 5, 6];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _result = _array1 arrayIntersect _array2; // _result is [3, 4]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
'''You can remove duplicates (get unique items) with this command:'''
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [1, 2, 2, 3, 4];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _result = _myArray arrayIntersect _myArray; // _result is [1, 2, 3, 4]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
Be wary that [[nil]] elements get removed by this method:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [1, 2, nil, 3, 4];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _result = _myArray arrayIntersect _myArray; // _result is [1, 2, 3, 4]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Selective Removal ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
Selectively filter out single elements from {{hl|_arrayA}} based on {{hl|_arrayB}}.<br>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
This is useful in the case where ''some'' duplicates must be removed.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _arrayA = [1, 2, 3, 2, 4, 5, 4];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _arrayB = [2, 2, 4];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _index = _arrayA find _x;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
if (_index != -1) then
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_arrayA deleteAt _index;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
};
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
} forEach _arrayB;
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_arrayA; // is now [1, 3, 5, 4]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Sorting ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
==== sort ====
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The [[sort]] command allows for sorting an array of [[String]], [[Number]] or sub-[[Array]]s of string/number. It modifies the original array and '''does not return anything''':
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["zzz", "aaa", "ccc"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray sort true; // _myArray is ["aaa", "ccc", "zzz"]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [666, 57, 1024, 42];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray sort false; // _myArray is [1024, 666, 57, 42]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [["zzz", 0], ["aaa", 42], ["ccc", 33]];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray sort true; // _myArray is [["aaa", 42], ["ccc", 33], ["zzz", 0]]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
==== reverse ====
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The [[reverse]] command simply reverses the array order:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [99, 33, 17, 24, "a", [3,2,1], 7777];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
reverse _myArray; // _myArray is [7777, [3,2,1], "a", 24, 17, 33, 99]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
==== BIS_fnc_sortBy ====
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The function [[BIS_fnc_sortBy]] has been created for more complex sorting. Its algorithm input must return a number:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>private _closestHelicopters = [[_heli1, _heli2, _heli3], [], { player distance _x }, "ASCEND"] call BIS_fnc_sortBy;</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
== Common Errors ==
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Index Rounding ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
In {{Link|Real Virtuality}} scripts, indices are rounded to the nearest whole number.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
A boundary case (X.5, where X is any whole number) rounds to the nearest '''even''' whole number.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
; Boundary cases:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* -0.5 <= index <= 0.5 rounds to 0
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* &nbsp;0.5 <&nbsp; index <&nbsp; 1.5 rounds to 1
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* &nbsp;1.5 <= index <= 2.5 rounds to 2
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* &nbsp;2.5 <&nbsp; index <&nbsp; 3.5 rounds to 3
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
; In short:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* -0.5 rounds '''up''' to 0
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* &nbsp;0.5 rounds '''down''' to 0
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* &nbsp;1.5 rounds '''up''' to 2
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* &nbsp;2.5 rounds '''down''' to 2
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* &nbsp;3.5 rounds '''up''' to 4
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
etc.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{{Feature|informative|This behaviour is different from {{Link|random}}'s behaviour.}}
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Index out of Range ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
The following code lists {{arma3}} behaviour on wrong indices:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = ["element0"];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray select -1; // throws a Error Zero Divisor error message
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray select  0; // returns "element0"
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray select  1; // returns nil
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray select  2; // throws a Error Zero Divisor error message
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
==== param ====
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
Use the [[param]] command in order to avoid out of range error:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myArray = [0, 1, 2];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray select 5; // error: out of range
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray param [5]; // returns nil
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_myArray param [5, "abc"]; // returns default value "abc" on invalid index
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
{{Feature|informative|See also [[params]] to define multiple items at once.}}
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
==== set ====
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
If the index given to the [[set]] command is out of bounds:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* if the index rounded to a negative number, then an [[Error Zero Divisor]] message will be displayed in game.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* if the index rounded to a positive number, then the array will [[resize]] to incorporate the index ''as its last value''. Each element between the last valid element, and the new [[set]] element, will be the [[Nothing|null type]]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Zero Divisor ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
See above - a used array index may be negative.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Unexpected "," ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
This error originates from a bad syntax:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myErroneousArray = ["Weapon1", "Weapon2", "Weapon3",]; // The last element in an array must not end by ","
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// this mostly happens in vertical arrays
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _myErroneousArray = [
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
"element1",
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
"element2",
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
"element3", // this one comma is wrong
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
];
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
=== Reserved variable in expression ===
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
This issue arises when trying to modify a read-only array (such as {{Link|select}} arrays that are returned from an addon, or eventually a trigger's {{Link|Magic Variables#thisList|thisList}}).
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
To combat this, ''copy'' said array with the {{Link|+|plus (+)}} command before modifying:
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
<sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _readOnlyArray = thisList; // assuming the code is called from within a trigger
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_readOnlyArray set [1, "test"]; // Error: Reserved variable in expression - thisList return value is read-only
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
// No Error
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
private _normalArray = +_readOnlyArray; // shallow-copy the array instead of using a reference
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
_normalArray set [1, "test"]; // perfectly fine
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
</sqf>
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
== See Also ==
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
* [[:Category:Arrays|Arrays]]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
 
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
[[Category: Data Types]]
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.
I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.I PRAY TO GOD UNBLOCK EVERYTHING.I PRAY TO ALLAH UNBLOCK EVERYTHING.

Latest revision as of 19:49, 26 May 2024

An Array is a list of items of varying variable types (including other arrays). Different types can coexist within the same array.

See also: Arrays

Since Arma 3 v1.56, arrays are limited to maximum of 9,999,999 (sometimes 10,000,000) elements.


Working With Arrays

Array Properties

An array variable is a reference to the array (see Wikipedia reference page); this means that if the array is edited, all the scripts/functions using a reference to this array will see the edition.

private _myArray = ["a", "b", "c"]; private _myNewArray = _myArray; _myArray set [1, "z"]; _myNewArray select 1; // will be "z"

An array set through setVariable does not need to be assigned again if you modify it by reference:

player setVariable ["myArray", ["a", "b", "c"]]; private _myArray = player getVariable "myArray"; _myArray set [1, "z"]; player getVariable "myArray"; // is ["a", "z", "c"]

Array Creation

// Example of an empty array private _myArray = []; count _myArray; // returns 0 // Example of a filled array private _myFilledArray = ["abc", "def"]; count _myFilledArray; // returns 2

An array can hold another array within it, that can hold another array itself, etc:

private _myArray = [["my", "subArray", 1], ["mySubArray2"], [["my", "sub", "sub", "array"]]]; count _myArray; // returns 3 count (_myArray select 0); // returns 3 count (_myArray select 1); // returns 1 count (_myArray select 2); // returns 1 count ((_myArray select 2) select 0); // returns 4

Getting an element

An array uses a zero-based index for its elements:

private _myArray = ["first item", "second item", "third item"]; _myArray select 0; // returns "first item" _myArray # 2; // returns "third item" - Arma 3 only

Setting an Element

private _myArray = ["first item", "second item", "third item"]; _myArray select 1; // returns "second item" _myArray set [1, "hello there"]; // _myArray is ["first item", "hello there", "third item"]

If the index given to the set command is out of bounds, the array will resize to incorporate the index as its last value. All the "empty spaces" between the last valid element and the new set element will be filled with nil

Counting elements

private _myArray = ["first item", ["second item's subitem 1", "second item's subitem 2"], "third item"]; count _myArray; // returns 3 - arrays are not counted recursively

Changing array size

The resize command is made to reduce or expand an array:

private _myArray = ["a", "b", "c", "d", "e"]; _myArray resize 3; // _myArray is ["a", "b", "c"]
private _myArray = ["a", "b", "c"]; _myArray resize 5; // _myArray is ["a", "b", "c", nil, nil]

You do not need to extend an array before adding any elements.

Array Copy

private _myArray = ["a", "b", "c"]; private _myNewArray = _myArray; _myArray set [1, "z"]; _myNewArray select 1; // will be "z"
private _myArray = [["a", "b", "c"], ["d", "e", "f"]]; private _subArray1 = _myArray select 0; _subArray1 set [1, "z"]; // _subArray1 is now ["a", "z", "c"] // _myArray is now [["a", "z", "c"], ["d", "e", "f"]]

In order to avoid this behaviour, copy the array with + (plus):

// making copy private _myArray = ["a", "b", "c"]; private _myNewArray = +_myArray; _myArray set [1, "z"]; _myNewArray select 1; // still "b"

Sub-arrays are also deep-copied; _myNewArray will not point at the same sub-array instances.

Adding (Appending) Elements

In Arma 3 use append and pushBack commands:

private _myArray = ["a", "b", "c"]; _myArray pushBack "d"; // _myArray is ["a", "b", "c", "d"] - pushback = add the element at the end _myArray append ["e", "f"]; // _myArray is ["a", "b", "c", "d", "e", "f"] - append = pushback for each provided items

You could also use the plus (+) operator to add arrays. The difference is that addition returns a copy of array and thus a little slower than append and pushBack, which modify the target array.

private _myArray = ["a", "b", "c"]; _myArray = _myArray + ["d"]; // _myArray is ["a", "b", "c", "d"] _myArray = _myArray + ["e", "f"]; // _myArray is ["a", "b", "c", "d", "e", "f"]

Removing (Deleting) Elements

In Arma 3 the deleteAt and deleteRange commands are available:

private _myArray = ["a", "b", "c", "d", "e"]; _myArray deleteAt 0; // _myArray is ["b", "c", "d", "e"]
private _myArray = ["a", "b", "c", "d", "e"]; _myArray deleteRange [1, 2]; // _myArray is ["a", "d", "e"]

You can also use the minus (-) operator to subtract arrays. The subtraction returns array copy, just like addition, and is not as fast as deleteAt and deleteRange which modify target arrays.

private _myArray = ["a", "b", "c", "d", "e"]; _myArray = _myArray - ["a"]; // _myArray is ["b", "c", "d", "e"]

In Arma 3 it became possible to also subtract nested arrays:

private _myArray = [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"]]; _myArray = _myArray - [["d", "e", "f"]]; // _myArray is [["a", "b", "c"], ["g", "h", "i"]]

The subtraction will remove all elements of the second array from the first one:

_myArray = ["a", "b", "c", "a", "b", "c"] - ["a", "b"]; // _myArray is ["c", "c"]

The solution to this issue is the combined use of set and an item that you know is not present in the array:

private _myArray = ["a", "b", "c", "a", "b", "c"]; _myArray set [2, objNull]; // _myArray is ["a", "b", objNull, "a", "b", "c"] _myArray = _myArray - [objNull]; // _myArray is ["a", "b", "a", "b", "c"]

Using this technique, it is possible to mimic deleteRange behaviour this way:

private _myArray = ["a", "b", "c", "d", "e"]; { _myArray set [_x, objNull] } forEach [1, 2]; // _myArray is ["a", objNull, objNull, "d", "e"] _array = _array - [objNull]; // _myArray is ["a", "d", "e"]

Going Through the Array

The simplest way to iterate through an array is the forEach command:

private _myArray = ["a", "b", "c", "d", "e"]; { systemChat _x } forEach _myArray;

A combination of for, count and select can also be used:

private _myArray = ["a", "b", "c", "d", "e"]; for "_i" from 0 to (count _myArray) -1 do { // count returns 5, but it is a zero-based index systemChat (_myArray select _i); };


Advanced Usage

apply

Similar to the "map" function in Javascript, apply allows to apply code to every elements in an array and return a copy:

private _myArray = [1, 2, 3, 4, 5]; _myArray = _myArray apply { _x * 2 }; // _myArray is [2, 4, 6, 8, 10] // same as (but faster than) _myArray = + _myArray; for "_i" from 0 to count _myArray -1 do { private _element = _myArray select _i; _myArray set [_i, _element * 2]; };

select

A simple way to filter an array (and obtain a new one) is using select's alternative syntax:

private _myArray = [1, 2, 3, 4, 5]; private _filteredArray = _myArray select { _x > 3 }; // _filteredArray is [4, 5] // same as private _filteredArray = []; { if (_x > 3) then { _filteredArray pushBack _x } } forEach _myArray;

findIf

The findIf command was introduced in Arma 3 and allows you to go through the whole list and stop as soon as the condition is met, returning the condition-meeting element's array index:

private _myArray = [1, 2, 3, 4, 5]; _myArray findIf { _x == 3 } > -1; // returns true, meaning there is an element that equals 3 _myArray findIf { _x == 6 } > -1; // returns false, meaning there is no element that is equal to 6

You could use count to achieve the same result, however count won't stop until it iterated through the whole array, so it might take longer.

private _myArray = [1, 2, 3, 4, 5]; { _x == 3 } count _myArray > 0; // returns true, meaning there is an element that equals 3 { _x == 6 } count _myArray > 0; // returns false, meaning there is no element that is equal to 6

arrayIntersect

The arrayIntersect command returns a new array filled with the items found in both provided lists:

private _array1 = [1, 2, 3, 4]; private _array2 = [3, 4, 5, 6]; private _result = _array1 arrayIntersect _array2; // _result is [3, 4]

You can remove duplicates (get unique items) with this command:

private _myArray = [1, 2, 2, 3, 4]; private _result = _myArray arrayIntersect _myArray; // _result is [1, 2, 3, 4]

Be wary that nil elements get removed by this method:

private _myArray = [1, 2, nil, 3, 4]; private _result = _myArray arrayIntersect _myArray; // _result is [1, 2, 3, 4]

Selective Removal

Selectively filter out single elements from _arrayA based on _arrayB.
This is useful in the case where some duplicates must be removed.

private _arrayA = [1, 2, 3, 2, 4, 5, 4]; private _arrayB = [2, 2, 4]; { private _index = _arrayA find _x; if (_index != -1) then { _arrayA deleteAt _index; }; } forEach _arrayB; _arrayA; // is now [1, 3, 5, 4]

Sorting

sort

The sort command allows for sorting an array of String, Number or sub-Arrays of string/number. It modifies the original array and does not return anything:

private _myArray = ["zzz", "aaa", "ccc"]; _myArray sort true; // _myArray is ["aaa", "ccc", "zzz"]
private _myArray = [666, 57, 1024, 42]; _myArray sort false; // _myArray is [1024, 666, 57, 42]
private _myArray = [["zzz", 0], ["aaa", 42], ["ccc", 33]]; _myArray sort true; // _myArray is [["aaa", 42], ["ccc", 33], ["zzz", 0]]

reverse

The reverse command simply reverses the array order:

private _myArray = [99, 33, 17, 24, "a", [3,2,1], 7777]; reverse _myArray; // _myArray is [7777, [3,2,1], "a", 24, 17, 33, 99]

BIS_fnc_sortBy

The function BIS_fnc_sortBy has been created for more complex sorting. Its algorithm input must return a number:

private _closestHelicopters = [[_heli1, _heli2, _heli3], [], { player distance _x }, "ASCEND"] call BIS_fnc_sortBy;


Common Errors

Index Rounding

In Real Virtuality scripts, indices are rounded to the nearest whole number. A boundary case (X.5, where X is any whole number) rounds to the nearest even whole number.

Boundary cases
  • -0.5 <= index <= 0.5 rounds to 0
  •  0.5 <  index <  1.5 rounds to 1
  •  1.5 <= index <= 2.5 rounds to 2
  •  2.5 <  index <  3.5 rounds to 3
In short
  • -0.5 rounds up to 0
  •  0.5 rounds down to 0
  •  1.5 rounds up to 2
  •  2.5 rounds down to 2
  •  3.5 rounds up to 4

etc.

This behaviour is different from random's behaviour.

Index out of Range

The following code lists Arma 3 behaviour on wrong indices:

private _myArray = ["element0"]; _myArray select -1; // throws a Error Zero Divisor error message _myArray select 0; // returns "element0" _myArray select 1; // returns nil _myArray select 2; // throws a Error Zero Divisor error message

param

Use the param command in order to avoid out of range error:

private _myArray = [0, 1, 2]; _myArray select 5; // error: out of range _myArray param [5]; // returns nil _myArray param [5, "abc"]; // returns default value "abc" on invalid index

See also params to define multiple items at once.

set

If the index given to the set command is out of bounds:

  • if the index rounded to a negative number, then an Error Zero Divisor message will be displayed in game.
  • if the index rounded to a positive number, then the array will resize to incorporate the index as its last value. Each element between the last valid element, and the new set element, will be the null type

Zero Divisor

See above - a used array index may be negative.

Unexpected ","

This error originates from a bad syntax:

private _myErroneousArray = ["Weapon1", "Weapon2", "Weapon3",]; // The last element in an array must not end by "," // this mostly happens in vertical arrays private _myErroneousArray = [ "element1", "element2", "element3", // this one comma is wrong ];

Reserved variable in expression

This issue arises when trying to modify a read-only array (such as select arrays that are returned from an addon, or eventually a trigger's thisList).

To combat this, copy said array with the plus (+) command before modifying:

private _readOnlyArray = thisList; // assuming the code is called from within a trigger _readOnlyArray set [1, "test"]; // Error: Reserved variable in expression - thisList return value is read-only // No Error private _normalArray = +_readOnlyArray; // shallow-copy the array instead of using a reference _normalArray set [1, "test"]; // perfectly fine


See Also