Arma 3 Scripting

Command in Variables

isEqualTypeParams

Also available as Markdown and JSON, or read the original wiki page.

Description

Compares types of all elements of input array to types of all elements of template array. Similar to isEqualTypeArray however this command is designed for fast validation of functions params, so there are differences:

Syntax

input isEqualTypeParams template

Parameters:

Returns: Boolean

Examples

Example 1

// These all return true
[1,2,player,"10"] isEqualTypeParams [0,0,objNull,""];
[1,2,player,"10",true] isEqualTypeParams [0,0,nil,""];
[1,2,getPos player,"10",true] isEqualTypeParams [0,0,nil,""];

Example 2

// These all return false
123 isEqualTypeParams [0,0,objNull,""];
[] isEqualTypeParams [0,0,objNull,""];
[1,2,player] isEqualTypeParams [0,0,objNull,""];

See also

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