isNotEqualRef: Difference between revisions
Jump to navigation
Jump to search
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 not equal. |s1= val1 isNotEqu...") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 16: | Line 16: | ||
|p2= val2: [[Anything]] | |p2= val2: [[Anything]] | ||
|r1= [[Boolean]] - [[true]] if not the same | |r1= [[Boolean]] - [[true]] if not the same reference | ||
|x1= <sqf> | |x1= <sqf> | ||
_arr1 = [1,[2,[3]]]; | _arr1 = [1,[2,[3]]]; | ||
_arr2 = _arr1; | _arr2 = _arr1; | ||
_arr1 isEqualTo _arr2; // true | _arr1 isEqualTo _arr2; // true | ||
_arr1 isNotEqualRef _arr2; // false | _arr1 isNotEqualRef _arr2; // false | ||
_arr2 = +_arr1; | _arr2 = +_arr1; // array copy | ||
_arr1 isEqualTo _arr2; // true | _arr1 isEqualTo _arr2; // true | ||
_arr1 isNotEqualRef _arr2; // true | _arr1 isNotEqualRef _arr2; // true | ||
</sqf> | </sqf> |
Revision as of 22:01, 15 September 2022
Description
Syntax
- Syntax:
- val1 isNotEqualRef val2
- Parameters:
- val1: Anything
- val2: Anything
- Return Value:
- Boolean - true if not the same reference
Examples
- Example 1:
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