View Full Version : issues with if then else

Andrew Rudolph
01-15-2003, 07:39 AM
I am having issues with the new compiler, compiling if then else statements, this is what my code looks like:

if rc_sw1 = 0 then
drive_l = 254
drive_r = 0
drive_l = 200
drive_r = 200

Every time i syntax check it, it says Expected a label. Anyone know why? Or are you having the same issues?

Andrew Rudolph
01-15-2003, 08:15 AM
never mind we forgot to add the ' {$PBASIC 2.5} code in the top