 <p>You can also just put { } inside each case: statement<br> without them the whole case stack is evaluated as a single unit, so no variables can be defined within one case:</p> <p>But by putting </p> <pre><code> case blah: { // do stuff } break; </code></pre> <p>You can put anythign you want inside the case statement.</p>