user18905: I'm setting a series of variables with: uint32_t currentLedColor[9]
What I'd like to check is if certain ones of those are the same.
Basically want to say if currentLedColor[0] and currentLedColor[1] and currentLedColor[2] are equal
How would I write that?

user21015: You run multiple checks. For example:
if (currentLedColor[0] == currentLedColor[1] && currentLedColor[0] == currentLedColor[2]) {
    // do something
}


18905: <p>I'm setting a series of variables with: <code>uint32_t currentLedColor[9]</code></p>

<p>What I'd like to check is if certain ones of those are the same.</p>

<p>Basically want to say <code>if currentLedColor[0] and currentLedColor[1] and currentLedColor[2] are equal</code></p>

<p>How would I write that?</p>
 21015: <p>You run multiple checks. For example:</p>

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