---
name: "isEqualTypeAll"
type: command
status: ok
groups: ["Variables", "Arrays"]
arma3_since: "1.54"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isEqualTypeAll
revid: 377824
updated: 2026-01-03T04:23:49Z
---

# isEqualTypeAll

*Command · Variables, Arrays · Arma 3 v1.54*

## 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](../topics/Array.md).

> [!IMPORTANT]
> An empty array will return `false` (see [#Example 2](../commands/isEqualTypeAll.md#example-2)).

## Syntax

```sqf
arr isEqualTypeAll val
```

**Parameters:**

- `arr`: [Anything](../topics/Anything.md) - (was [Array](../topics/Array.md) before Arma 3 v2.10)
- `val`: [Anything](../topics/Anything.md)

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

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

### Example 2

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

### Example 3

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

## See also

[isEqualTypeArray](../commands/isEqualTypeArray.md) · [isEqualTypeAny](../commands/isEqualTypeAny.md) · [isEqualType](../commands/isEqualType.md) · [isEqualTypeParams](../commands/isEqualTypeParams.md) · [param](../commands/param.md) · [params](../commands/params.md) · [isEqualTo](../commands/isEqualTo.md) · [typeName](../commands/typeName.md)

<sub>Source: [BI Community Wiki — isEqualTypeAll](https://community.bistudio.com/wiki/isEqualTypeAll) (revision 377824).</sub>
