isEqualRef

From Bohemia Interactive Community
Revision as of 13:06, 2 September 2022 by Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.12 |branch= dev |gr1= Variables |descr= Compares two values by reference, returns true if equal. |s1= val1 isEqualRef...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.12.

Description

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

Syntax

Syntax:
val1 isEqualRef val2
Parameters:
val1: Anything
val2: Anything
Return Value:
Boolean - true if the same ref

Examples

Example 1:
_arr1 = [1,[2,[3]]]; _arr2 = _arr1; _arr1 isEqualTo _arr2; // true _arr1 isEqualRef _arr2; // true _arr2 = +_arr1; // array copy _arr1 isEqualTo _arr2; // true _arr1 isEqualRef _arr2; // false

Additional Information

See also:
isNotEqualRef isEqualTo 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