Perhaps I am missing something simple here but I cant for the life of me work out whats going on. For an input value of 0 speed, a float < 5 operator is returning true. Why would this happen?
Ah excuse my stupidity, it was due to wrong input pin assignments on speed > 5. I actually assigned 5 > speed inverting the logic!
Because speed by default is “0”, so it make sense that 5>0 = true !
Here it is again from your screenshot. Change that value and it will return what you expects.