I think it's easier with if statements, but try this:

Code:
switch(a)
case a > 5:
//do something
break;