>item.hasDuplicateCenters = function(){ > var hold = [this.prCtr1, this.prCtr2, this.prCtr3, this.prCtr4, this.prCtr5, this.prCtr6]; > hold.sort(); > for (var index = 5; index > 0; index--){ > if (hold[index] != 0){ > if (hold[index] === hold[index - 1]) return true; > } else return false; > } > > return false; >} >This is much clearer, thanks a lot. Going to test it on Monday.