View Single Post
  #3   Spotlight this post!  
Unread 05-02-2003, 23:23
wwrye wwrye is offline
Registered User
#0057 (Leopards)
 
Join Date: Jan 2003
Location: Houston
Posts: 18
wwrye is an unknown quantity at this point
next15 label

With that logic, you are going to be going through the next15 label regardless of auton_mode's value. If you use labels, you need to do something like this:

Code:
If auton_mode = 1 then got do_auton

'regular code in here

goto skip_auton
do_autonomous:

'autonomous goes in here

skip_auton:
A better option, if you're comfortable with 2.5 syntax is something like this:
Code:
 if auton_mode = 1 then
'autonomous stuff here
else
'non-autonomous code in here
endif

Last edited by wwrye : 05-02-2003 at 23:32.