BIS fnc areEqualNotNil: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Variables | ||
| | |descr= Compares all elements of passed array between each other and returns true is all are defined and identical.<br> | ||
Very fast, different from [[BIS_fnc_areEqual]] in that [[nil]] values will not be considered equal to each other. | |||
| | |s1= [anything1, anything2, …] call [[BIS_fnc_areEqualNotNil]] | ||
|p1= anythings: [[Anything]] - [[nil]] values won't be considered equal | |p1= anythings: [[Anything]] - [[nil]] values won't be considered equal | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
| | |x1= <sqf> | ||
[[1, 2, [3, [4, 5]]], [1, 2, [3, [4, 5]]]] call BIS_fnc_areEqualNotNil; // true | |||
[[1, 2, [3, [4, nil]]], [1, 2, [3, [4, nil]]]] call BIS_fnc_areEqualNotNil; // false | |||
</sqf> | |||
| [ | |x2= <sqf>[nil, nil] call BIS_fnc_areEqualNotNil; // false</sqf> | ||
|seealso= [[isEqualTo]] [[BIS_fnc_areEqual]] | |||
}} | }} | ||
Latest revision as of 15:31, 13 July 2022
Description
- Description:
- Compares all elements of passed array between each other and returns true is all are defined and identical.
Very fast, different from BIS_fnc_areEqual in that nil values will not be considered equal to each other. - Execution:
- call
- Groups:
- Variables
Syntax
- Syntax:
- [anything1, anything2, …] call BIS_fnc_areEqualNotNil
- Parameters:
- anythings: Anything - nil values won't be considered equal
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- isEqualTo BIS_fnc_areEqual
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