|
"Error: Expected a label"
Hi, i'm just trying to see if anyone can explain to me the reason for thparticular error, or jsut help me figure out why my line of code won't work. We're just playing around with the EDU-Robots and some optical sensors from last year. Explain why simply adding this line of code after the Relay Feedback LIghts portion of the default code, and before the Output data, isn't working:
if rc_sw1 = 1 then drive_L = 190
It gives the error displayed in the subject of this "Expected a Label." I really don't know what it's asking for. It highlights drive_L and says expected a label. Can anyone help on that one? I've compared all previous uses of the variable drive_L, and there doesn't seem to be any difference from the way they've used it, to the way that I've used it. Any help would be appreciated, so thanks.
Geoff
|