I wanted to check whether a value is in a certain range and I typed the following and it compiled and uploaded:
if ( 10 < pressDuration < 1000 )
The functionality wasn't as expected and I figured the correct form is if
( 10 < pressDuration && pressDuration < 1000 ) but my question is, if what I did is invalid, why did it compile without an error? What is the compiler's interpretation of my invalid code?