Problem with Array

The declared:

int RECV_PIN = 12; // the pin where you connect the output pin of TSOP4838
    int led1 = 2;
   
    int led3 = 4;
    
    int led5 = 6;
    
    int led7 = 8;
   
    int led9 = 10;

    int itsONled[] = {0,0,0,0,0,0};

my problem, how do I switch on all of the led at once with array? Does my code below correct? If not could you help me fix? This is my first project using arduino though...

 case code0:
             if(itsONled[1,2,3,4,5] == 1) {
                digitalWrite(led1, LOW);
                digitalWrite(led3, LOW);
                digitalWrite(led5, LOW);
                digitalWrite(led7, LOW);
                digitalWrite(led9, LOW);
                itsONled[1,2,3,4,5] = 0;
             } else {
                digitalWrite(led1, LOW);
                digitalWrite(led3, LOW);
                digitalWrite(led5, LOW);
                digitalWrite(led7, LOW);
                digitalWrite(led9, LOW);
                 itsONled[1,2,3,4,5] = 1;
             }
              break;

You're trying to work with all the things in the array at once. That won't work. It is nonsense. Make a for loop and go through one array index at a time.