Detect if multiple variables are the same?
You run multiple checks. For example:

if (currentLedColor[0] == currentLedColor[1] &amp;&amp; currentLedColor[0] == currentLedColor[2]) {
    // do something
}