---
name: "BIS_fnc_errorParamsType"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_errorParamsType
revid: 348544
updated: 2023-11-08T13:06:09Z
---

# BIS_fnc_errorParamsType

*Function · Diagnostic · Arma 3 v1.00*

Locality: effect **local**

## Description

Displays a parameter type error message (using [BIS_fnc_error](../functions/BIS_fnc_error.md)) explaining the problem.

## Syntax

```sqf
[value, method, expected] call BIS_fnc_errorParamsType
```

**Parameters:**

- **value**: [Anything](../topics/Anything.md) - (Optional, default [nil](../commands/nil.md)) value received.
- **method**: [String](../topics/String.md) - (Optional, default "") validation method, can be one of:
  - "isEqualType"
  - "isEqualTypeArray"
  - "isEqualTypeAll"
  - "isEqualTypeAny"
  - "isEqualTypeParams"
- **expected** (Optional, default: [nil](../commands/nil.md)): [Anything](../topics/Anything.md) - expected type.

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

## Examples

### Example 1

```sqf
// show error and abort if input is not of type ARRAY:
if !(_this isEqualType []) exitWith { [_this, "isEqualType", []] call BIS_fnc_errorParamsType; };
```

### Example 2

```sqf
// show error and abort if array input is not in format [SCALAR, STRING, BOOL]:
if !(_this isEqualTypeArray [0, "", true]) exitWith { [_this, "isEqualTypeArray", [0, "", true]] call BIS_fnc_errorParamsType; };
```

### Example 3

```sqf
// show error and abort if array input is not in format [BOOL, BOOL, BOOL, ...]:
if !(_this isEqualTypeAll true) exitWith { [_this, "isEqualTypeAll", true] call BIS_fnc_errorParamsType; };
```

### Example 4

```sqf
// show error and abort if input is neither ARRAY nor OBJECT:
if !(_this isEqualTypeAny [[], objNull]) exitWith { [_this, "isEqualTypeAny", [[], objNull]] call BIS_fnc_errorParamsType; };
```

### Example 5

```sqf
// show error and abort if input is neither of type ARRAY nor array in format [SCALAR, ARRAY, <ANYTHING>, OBJECT]:
if !(_this isEqualTypeParams [0, [], nil, objNull]) exitWith { [_this, "isEqualTypeParams", [0, [], nil, objNull]] call BIS_fnc_errorParamsType; };
```

## See also

[BIS_fnc_error](../functions/BIS_fnc_error.md)

<sub>Source: [BI Community Wiki — BIS fnc errorParamsType](https://community.bistudio.com/wiki/BIS_fnc_errorParamsType) (revision 348544).</sub>
