arrayName pushBack element

Operand types

arrayName: Array
element: Anything

Type of returned value

Description

Insert an element to the back of the given array. This command modifies the original array.

Used In

Arma3

Example

_arr = [1,2,3];
_arr pushBack 4;
hint str _arr; //[1,2,3,4]

_arr = [1,[2,4],3];
(_arr select 1) pushBack [5,6];
_arr //[1,[2,4,[5,6]],3]
Search OFPEC COMREF