You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
IMHO "&& temperature < 70" in condition2 is unnecessary.
Explanation:
condition1 is "true" if value is above "70". In this example all other "else" or "else if" conditions get ignored.
if value is below "70" first condition is "false" and second condition gets checked. This means already value is below 70 and must not be checked again.
The text was updated successfully, but these errors were encountered:
Artoria2e5
added a commit
to Artoria2e5/reference-en
that referenced
this issue
Oct 3, 2018
Affected document:
https://github.com/arduino/reference-en/blob/master/Language/Structure/Control%20Structure/else.adoc
Issue:
IMHO "&& temperature < 70" in condition2 is unnecessary.
Explanation:
condition1 is "true" if value is above "70". In this example all other "else" or "else if" conditions get ignored.
if value is below "70" first condition is "false" and second condition gets checked. This means already value is below 70 and must not be checked again.
The text was updated successfully, but these errors were encountered: