so I have the code:
how do I prevent the code from being executed after the first case statement has been met? If condition 3 is met, I don't 4 or 5 to execute regardless. How do I modify the code to stop this?
thanks
case 1: echo "1"; break;
case 2: echo "2"; break;
case 3: echo "3"; break;
case 4: echo "4"; break;
case 5: echo "5"; break;
how do I prevent the code from being executed after the first case statement has been met? If condition 3 is met, I don't 4 or 5 to execute regardless. How do I modify the code to stop this?
thanks