hiya, do i need more than return false; to get out of a for loop?
for (var i = 0; i < paletteObj.length; i++) {
var _customName = paletteObj[i].CustomColorName;
var _colorHex = paletteObj[i].CustomColorCode;
if (_customName == customName && _colorHex == colorHex) {
//error
util.ShowError("A swatch of the same color has already been created.");
return false;
}
}