No if's or while's in a switch case?

Thanks for the help,
obviously the syntax is wrong, where can I find intructions/examples to fix it?