Arduino Forum
Error in my code but it compiled anyway? if ( 10 < pressDuration < 1000 )
Projects
Programming
anon73444976
September 5, 2021, 6:53pm
3
Yup.
1 (aka true) or 0 (aka false) is always less than 1000.
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Need some help with IF statement Error
Programming
10
2230
May 5, 2021
comparisons: (24 > tempIAT && tempIAT > 0) but not if (24 > tempIAT > 0)
Programming
5
949
May 5, 2021
If statement problem
Syntax & Programs
8
10949
May 6, 2021
Multiple variables for an if statement
Programming
3
1463
May 5, 2021
IF and If Help ranges
Syntax & Programs
4
1783
May 6, 2021