switch(true){
            case TXrotY < 10 :
                console.log("Y10");
                   break;
               case TXrotY < 20 :
                console.log("Y20");
                break;
           default :
                break;
        }