KK_fnc_isEqual = {
switch (_this select 0) do {
case (_this select 1) : {true};
default {false};
};
};
hint str (["hello", "Hello"] call KK_fnc_isEqual); //false
hint str (["ABC", "ABC"] call KK_fnc_isEqual); //true
hint str ([1, "ABC"] call KK_fnc_isEqual); //false (no error)
hint str ([16, 16] call KK_fnc_isEqual); //true
hint str ([player, vehicle player] call KK_fnc_isEqual); //true
hint str ([false, false] call KK_fnc_isEqual); //true
hint str ([true, false] call KK_fnc_isEqual); //false
hint str ([true, 1 == 1] call KK_fnc_isEqual); //true
hint str ([[1,2,3], [1,2,3]] call KK_fnc_isEqual); //true
hint str ([[1,[2,[3]]], [1,[2,[3]]]] call KK_fnc_isEqual); //true
hint str ([[1,[2,[3]]], [1,[2,[4]]]] call KK_fnc_isEqual); //false