BIS_fnc_areEqual
Jump to navigation
Jump to search
Description
- Description:
- This function returns true if all of the passed data elements are of the same type and value. One or more elements can be passed.
Note:
- This function is an improvement over the == operator because it can handle any data type in any combination.
- For arrays, it returns true if both arrays hold the same elements in the same order.
- If both values are undefined / nil / null, then this function will return true.
- Execution:
- call
- Problems:
- EXTREMELY large strings (> 4k) or compiled code (from a file, for example) might not be properly compared if they are only different near the end of the file.
- Groups:
- Variables
Syntax
- Syntax:
- [anything1, anything2, ..., anythingN] call BIS_fnc_areEqual
- Parameters:
- anythingM: Anything - any data type
- Return Value:
- Boolean
Examples
- Example 1:
Additional Information
- See also:
- isEqualTo BIS_fnc_areEqualNotNil
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