I've got this syntax error, in a 28X1 program, and I'm trying to figure out what to do to fix it.
Here's the code:
if head > ForwardLeft and head < 150 then head = head - 15
And here's the response after a syntax check:
---------------------------
Compile Error...
---------------------------
if head > ForwardLeft and head < 150 then head = head - 15
Error: label_conv: VAR is already defined!
---------------------------
OK
---------------------------
I'm just trying to adjust the value of "head" if it meets the conditions. I know that "head" has already been defined as a symbol in my init routine.
I've tried playing with things, but don't understand what I'm doing wrong.
Help !
Thanks,
Duane S
Wilson, NC USA
Here's the code:
if head > ForwardLeft and head < 150 then head = head - 15
And here's the response after a syntax check:
---------------------------
Compile Error...
---------------------------
if head > ForwardLeft and head < 150 then head = head - 15
Error: label_conv: VAR is already defined!
---------------------------
OK
---------------------------
I'm just trying to adjust the value of "head" if it meets the conditions. I know that "head" has already been defined as a symbol in my init routine.
I've tried playing with things, but don't understand what I'm doing wrong.
Help !
Thanks,
Duane S
Wilson, NC USA
Last edited: