Using multiple variables in a switch case

Im attempting another route software-wise other than a bunch of IF statements. In its current form, I have 2 variables being “checked” to control the output of 2 LEDs.

Current code…

const int pot1 = A0;
const int pot2 = A3;
byte pot1val = 0;
byte pot2val = 0;
const int leda = 8;
const int ledb = 9;

const byte potarr1 [16] = {0,17,33,51,68,84,102,119,135,153,170,186,204,221,237,255};
const byte potarr2[20] = {0,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50};
void setup()
{
pinMode(leda, OUTPUT);
pinMode(ledb, OUTPUT);
}
void loop()
{
pot1val = map(analogRead(pot1),0,1023,0,255);
pot2val = map(analogRead(pot2),0,1023,0,255);

if(pot1val <= potarr1[3] && pot2val >= potarr2[5])
{
digitalWrite(leda, HIGH);
digitalWrite(ledb, HIGH);
}
if(pot1val >= potarr1[4] && pot2val <= potarr2[4])
{
digitalWrite(leda, LOW);
digitalWrite(ledb, HIGH);
}
}

My question is, can I use the multiple arguments in a switch case and if so could you provide an example? I have looked at most the search results I can find on switch case but I can’t seem to wrap my head around it. Thank you.

Bill

I'm not sure this answers your question, but you could use something like:

  switch (result(pot1val, pot2val)) {
    case 1:
      // Some code...
      break;
    case 2:
      // Some code...
      break;
   // etc.....
  }

and have result() return different values based on the tests of pot1val and pot2val.