if(cm2<30,cm>30)
Two possible ways it should be. You either want the values to between cm2<30 or cm>30 or cm2<30 and cm>30