If statements possibly being scrubbed?

Try using serial prints before the if statement so you. Yes YOU!. Can read the states of your thingies.

I found to reduce issues do not mix floats and ints. 10 is a int. 10.0f is a float.