Here is my Case 2 code… let’s see if it is right…
It technically works, but you can do it all in a single switch since you’re checking against the same variable (level):
switch(level)
{
case 1:
password = level1Passwords[0];
break;
case 2:
password = level2Passwords[0];
break;
}
1 Like