Arma 3 Scripting

Command in Variables

isNotEqualRef

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

Description

Compares two values by reference, returns true if not equal.

Syntax

val1 isNotEqualRef val2

Parameters:

Returns: Boolean - true if not the same reference

Examples

Example 1

_arr1 = [1,[2,[3]]];
_arr2 = _arr1;
_arr1 isEqualTo _arr2;        // true
_arr1 isNotEqualRef _arr2;    // false

_arr2 = +_arr1;                // array copy
_arr1 isEqualTo _arr2;        // true
_arr1 isNotEqualRef _arr2;    // true

See also

isEqualRef · isNotEqualTo · Operators