MV Function not running properly

I made this small plugin for my game but I'm having issues with it. The problem is it seems to be skipping cases where 2 switches are on (note: cases with 1 switch work properly) and only outputting "Balanced" every time even when correct cases are met as seen in the image [11, 14] should output "Pampurred".
log.png

As you can see in the function case: [11, 14] does exist but it's still not updating the variable value. Also I know there are some cases not in the list such as [11, 12] but those cases will never appear. Does anyone know where I messed up?
In my case, this was the only way I could make the comparison using a switch case statement.

JavaScript:
ary = [1, 3];
switch (true) {
case (ary[0] == 1 && ary[1] == 3):
  console.log("Odd!");
  break;
case (ary[0] == 2 && ary[1] == 4):
  console.log("Even!");
  break;
default:
  console.log("Error!");
}
If you want to check multiple cases you wouldn't do it like this:
case [11, 13]:
$gameVariables.setValue(27, 'Pawmpuss');
break;

But this way instead:
case 11: case 13:
$gameVariables.setValue(27, 'Pawmpuss');
break;
In my case, this was the only way I could make the comparison using a switch case statement.

JavaScript:
ary = [1, 3];
switch (true) {
case (ary[0] == 1 && ary[1] == 3):
  console.log("Odd!");
  break;
case (ary[0] == 2 && ary[1] == 4):
  console.log("Even!");
  break;
default:
  console.log("Error!");
}
Thank you I got it to work this way
In general, the problem is that equality on arrays doesn't do what you'd expect it does - it checks if they're the same object, not if they have the same values. E.g, [5] === [5] will evaluate to false - these are two different arrays, even if they both have the same elements. So this way of making a switch statement won't work. What you could do instead would be someting like this:
JavaScript:
let compareString = switches_on[0]+'-'+switches_on[1]
switch (compareString) {
        case "11-13":
          $gameVariables.setValue(27, 'Pawmpuss');
          break;
        case "11-14":
          $gameVariables.setValue(27, 'Pampurred');
          break;
        //etc...
Since comparing strings will work just fine.

EDIT: And in this case an even better way would be to store the data in an object, and then access it. Like so:

JavaScript:
let compareString = switches_on[0]+'-'+switches_on[1];
let data = {       
        "11-13": 'Pawmpuss',
        "11-14": 'Pampurred',
        "11-15": 'Vigurrous',
        "11-16": 'Furrloader',
        "11-17": 'Gourmeownd',
        "11-18": 'Purrticular',
        //etc
        }
$gameVariables.setValue(27, data[compareSrting] || "Balanced");
Ah I get it now thanks @Mac15001900 for the explanation. My problem is solved.

Original thread: https://forums.rpgmakerweb.com/threads/function-not-running-properly.154690/