BIS fnc areEqualNotNil: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (a comma on the run was caught) |
m (template:command argument fix) |
||
Line 9: | Line 9: | ||
| Compares all elements of passed array between each other and returns true is all are defined and identical.<br /> | | 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. |= | Very fast, different from [[BIS_fnc_areEqual]] in that [[nil]] values will not be considered equal to each other. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [anything1, anything2, …] call [[BIS_fnc_areEqualNotNil]] |= | | [anything1, anything2, …] call [[BIS_fnc_areEqualNotNil]] |SYNTAX= | ||
|p1= anythings: [[Anything]] - [[nil]] values won't be considered equal |= Parameter 1 | |p1= anythings: [[Anything]] - [[nil]] values won't be considered equal |= Parameter 1 | ||
| [[Boolean]] |= | | [[Boolean]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 24: | Line 24: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[isEqualTo]], [[BIS_fnc_areEqual]] |= | | [[isEqualTo]], [[BIS_fnc_areEqual]] |SEEALSO= | ||
}} | }} |
Revision as of 11:26, 7 April 2019
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:
- Uncategorised
Syntax
- Syntax:
- [anything1, anything2, …] call BIS_fnc_areEqualNotNil
- Parameters:
- anythings: Anything - nil values won't be considered equal
- Return Value:
- Boolean
Examples
- Example 1:
[[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
- Example 2:
[nil, nil] call BIS_fnc_areEqualNotNil; // false
Additional Information
- See also:
- isEqualToBIS_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