switch(true) { case num<49: document.write("not enough"); break; case num>50: document.write("too much"); break; default: document.write("write a n"); }