Irbutton will never be less then 9 because you and it with 127. So your if will always be false.