Arma 3 Scripting

isEqualTypeAll

  • Arma 3 v1.54

Command · also in Arrays · Markdown · JSON · original wiki page

Description

Compares types of all elements of an array to the type of a single value. Since Arma 3 v2.09.149634 no additional check is needed to make sure the first argument is an Array.

Important

An empty array will return false (see #Example 2).

Syntax

arr isEqualTypeAll val

Parameters:

Returns: Boolean

Examples

Example 1

_arr = [1,2,3,4,5,6,7,8,9,0];
_arr isEqualTypeAll ""; // false
_arr isEqualTypeAll 0;    // true

Example 2

[] isEqualTypeAll "";    // false
[""] isEqualTypeAll "";    // true

Example 3

0 isEqualTypeAll "";    // false
0 isEqualTypeAll 0;        // false
[0] isEqualTypeAll 0;    // true

See also

isEqualTypeArray · isEqualTypeAny · isEqualType · isEqualTypeParams · param · params · isEqualTo · typeName