Quote:
Originally posted by rust710
Or the PBasic 2.5 version
If auton_mode = then
gosub AUTONOMOUS ' Jumps to subroutine for autonomous movement '
else
Gosub Normal_operation ' Jumps to subroutine for normal operation '
endif
Basicly the same as 2.0 but looks nicer and is easier to code.
|
If you're doing 2.5, you can also do it all in one line:
Code:
IF auton_mode=1 THEN GOSUB autonomous ELSE GOSUB normal_operation
I just posted a rather lengthy reply to a similar question in
this thread that you may want to look at.
--Rob