switch ((x > y)*4+(x>z)*2+(y>z)) {
case ...
}