I am trying to create a more robust WAIT FOR in a KAREL program by implementing a simple timeout condition;
let's suppose my old code was
where condition usually is a simple boolean expression (e.g. DIN[1] AND DIN[2])
What I want to do is
problem is the compiler doesn't like when you put mixed AND or OR in the same expression and gives me this error
Quote"AND" and "OR" cannot both be specified in a condition.
Has anyone encountered this issue? How do you solve it in an elegant way that doesn't involve a brutal 'put the condition test inside a REPEAT UNTIL loop' ?