isNotEqualRef

From Bohemia Interactive Community
Revision as of 18:30, 10 March 2023 by Lou Montana (talk | contribs) (Text replacement - "|branch= dev " to "")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Compares two values by reference, returns true if not equal.
Groups:
Variables

Syntax

Syntax:
val1 isNotEqualRef val2
Parameters:
val1: Anything
val2: Anything
Return Value:
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

Additional Information

See also:
isEqualRef isNotEqualTo Operators

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note