Need help in making array to validate inputs

Working with IR remote project and would like to add an LED indicator representing a valid input.
With research I have put together an array and within the array all of the valid values of the IR remote.
What I do not understand is how to grab a value from the array to compare it against the button press during operations. What I want to do is “press a button on the remote, the value of the button pressed is compared to the values inside the array and if true, turn on a green LED.”

I did not include all of the code, only the immediate parts concerning the array and switch case.

any and all comments welcomed!

unsigned long ValidationCodes[] = { 
  0xFF3AC5, 0xFFBA45, 0xFF827D, 0xFF02FD, 0xFF1AE5, 0xFF9A65, 0xFFA25D, 0xFF22DD, 0xFF2AD5, 0xFFAA55, 0xFF926D, 0xFF12ED, 0xFF0AF5, 0xFF8A75, 0xFFB24D, 0xFF32CD, 0xFF38C7, 0xFFB847, 0xFF7887, 0xFFF807, 0xFF18E7, 0xFF9867, 0xFF58A7, 0xFFD827, 0xFF28D7, 0xFFA857, 0xFF6897, 0xFFE817, 0xFF08F7, 0xFF8877, 0xFF48B7, 0xFFC837, 0xFF30CF, 0xFFB04F, 0xFF708F, 0xFFF00F, 0xFF10EF, 0xFF906F, 0xFF50AF, 0xFFD02F, 0xFF20DF, 0xFFA05F, 0xFF609F, 0xFFE01F };       // an array of pin numbers to which LEDs are attached
int ValidationCount = 44;   


void setup()  
{
  for (int thisPin = 0; thisPin < ValidationCount; thisPin++)  {
   pinMode(ValidationCodes[thisPin], OUTPUT);  
   
   
   
     switch(results.value)
  {
  case 0xFF3AC5: 
    Serial.println(results.value, HEX);
    Serial.println("Brightness Down");// lowest brightness level
    strip.setBrightness(35);
    strip.show();
    break;
  case 0xFFBA45: 
    Serial.println("Brightness Up");// mid-brightness level
    strip.setBrightness(110);
    strip.begin();
    strip.show(); 
    break;
  for (int thisPin = 0; thisPin < ValidationCount; thisPin++)  {
   pinMode(ValidationCodes[thisPin], OUTPUT);

This is nonsense. You don’t have pins numbered 0xFF3AC5, 0xFFBA45, 0xFF827D, 0xFF02FD, 0xFF1AE5, etc.

You don't have 44 pins either.

Come back after a few minutes of careful thought.

...R

I'm thinking that I did not make my question clear. I do not have 44 pins on the Arduino UNO ... 44 buttons on the IR remote. Can I store the values of the IR remote button values inside an array and call on them to valid a button push?

Thanks to both of you to responding to my question

I know you have 44 buttons on your remote. But your code assumes you have 44 pins on your Arduino. Look at it.

...R

I do not have 44 pins on the Arduino UNO … 44 buttons on the IR remote.

So, why are you setting the mode of some pins on the Arduino?

The switch number on the remote has NOTHING to do with the value that it outputs. In addition, the switch number on the remote is not of the slightest interest to the Arduino.