Mblock 5 on an Mbot
Situation:- Left side of line sensor is white and the right side of the line sensor is black.
Why would
(line follower sensor PORT2 detects LEFT being BLACK) AND (line follower sensor PORT2 detects RIGHT being BLACK)
evaluate to TRUE.
Surely the fact that the Left is White would cause the first half of the AND statement to evaluate to FALSE wouldn’t it.
NB: It does work if the test is changed to BOTH being BLACK, but why doesn’t it work in the above statement?