var x = 0; // change this to 1, true, false, hello world, or something that is not one of those switch (x) { // when x is switched... case 0: // if x is 0... println("x has a value of 0!"); break; // closes it off case 1: println("x has a value of 1!"); break; case true: println("x is true!"); break; case false: println("x is false!"); break; case "hello world": println("x says hello!"); break; default: // if x is none of those... println("x has a value that is not specified."); }