Help with array : How to compare

Hi Pauls, you mean in this way

Like that, yeah. But, I'm pretty sure that won't work on an Arduino.