It sonds like you want to check none of the 25 fields contain a duplicate value. Do you want to do this in
Java or JavaScript? In Java, you could put all the values in a HashSet and see that the size is 25 since the HashSet will remove all duplicates. In JavaScript, I think you'd need to write a loop.