追記 if ax>= and なんたら →何と比較すんの? if ax>=hoo and なんたら →axがhoo以上だったらね 比較対象がないのが原因です