Variables and operators help in Spin

mr_general.txt (1297Bytes)

Hi again LMR Im having some problems writing basic obstacle avoidance code for a propeller based robot with a ping
when i compile the code i get the error "variable needs an operator"
its a bit noobish of me really but im a bit stuck.
And yes i have read the pages on operators in the propeller manual (page 144 in the propeller manual v1.1)
Heres a screen cap for those interested

screencap1.png


many thanks for the help

Tom J

Colon

Colon Equals  :=  instead of just an =

 

Cheers

Cheers Chris,
just getting my head round the rest of the code now
Tom J