Nested switch...case

But the problems with you as this compiles

int i;

void setup(){
}

void loop(){
  switch (i){
    case 1:
    break;
    case 2:
     switch (i){
      case 1:break;
      case 2:break;
    }
    break;
  }
}

Mark

PS try auto formatting your code then post it ALL with the current error message.

M