mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-14 20:22:56 +03:00
14
SQF/dayz_code/compile/fn_isEqual.sqf
Normal file
14
SQF/dayz_code/compile/fn_isEqual.sqf
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
Kilzone_Kid's megafast isEqual function
|
||||
params [array1,array2]
|
||||
|
||||
Examples:
|
||||
hint str ([[1,2,3], [1,2,3]] call fnc_isEqual); //true
|
||||
hint str ([[1,[2,[3]]], [1,[2,[3]]]] call fnc_isEqual); //true
|
||||
hint str ([[1,[2,[3]]], [1,[2,[4]]]] call fnc_isEqual); //false
|
||||
*/
|
||||
|
||||
switch (_this select 0) do {
|
||||
case (_this select 1) : {true};
|
||||
default {false};
|
||||
};
|
||||
Reference in New Issue
Block a user