Pixel-Composer/scripts/real_comparison/real_comparison.gml
2022-11-22 20:25:39 +07:00

11 lines
313 B
Plaintext

function isEqual(val1, val2) {
if(!is_array(val1) && !is_array(val2)) return val1 == val2;
if(is_array(val1) ^ is_array(val2)) return false;
if(array_length(val1) != array_length(val2)) return false;
for( var i = 0; i < array_length(val1); i++ ) {
if(val1[i] != val2[i]) return false;
}
return true;
}