BIS fnc areEqualNotNil: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (revert + fix) |
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ") |
||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.00 | |version1= 1.00 | ||
Revision as of 10:04, 14 June 2021
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:
[[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