There are two conditions which call the same subroutine. Each condition consists of two elements. Is there any way to reduce the code by combining the two tests into a single line like this:
"if x AND y OR a AND b THEN GOSUB"
This is the code that seems to work:
And this is the code that doesn't seem to work but I'd like to make work:
Any thoughts welcome!
"if x AND y OR a AND b THEN GOSUB"
This is the code that seems to work:
Code:
if w6=1 AND w1 < 110 then
gosub lighton
elseif w6=2 AND w1 < 164 then
gosub lighton
else
gosub lightoff
endif
Code:
if w6=1 AND w1 < 110 OR w6=2 AND w1<164 then