Error in my code but it compiled anyway? if ( 10 < pressDuration < 1000 )

Yup.
1 (aka true) or 0 (aka false) is always less than 1000.

2 Likes