---
name: "isNotEqualRef"
type: command
status: ok
groups: ["Variables"]
arma3_since: "2.12"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isNotEqualRef
revid: 338493
updated: 2023-03-10T17:30:50Z
---

# isNotEqualRef

*Command · Variables · Arma 3 v2.12*

## Description

Compares two values by reference, returns [true](../commands/true.md) if not equal.

## Syntax

```sqf
val1 isNotEqualRef val2
```

**Parameters:**

- `val1`: [Anything](../topics/Anything.md)
- `val2`: [Anything](../topics/Anything.md)

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if not the same reference

## Examples

### Example 1

```sqf
_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](../commands/isEqualRef.md) · [isNotEqualTo](../commands/isNotEqualTo.md) · [Operators](../topics/Operators.md)

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