switch (iRPS[iPlayer]){ case 1: switch (iRPS[iTarget]) { case 2: { // Action here } case 3: { // Action here } } case 2: if (iRPS[iTarget] == 1) { // Action here } case 3: if (iRPS[iTarget] == 1) { // Action here }}