Here is the code for a small program I am trying. Trying to figure out when I replace "GOTO main" with "RETURN" the program only executes one of the items and nothing else happens. If I have "GOTO main" everything works but I really want it to return and continue where it left off instead of always going back to the top of "main" all the time.

Hopefully I described that ok. Appreciate any help.

Code:
main
if switch1 = 1 then servocenter 
if switch1 = 0 then low led1
if switch2 = 1 then servoright
if switch2 = 0 then low led2
if switch3 = 1 then servoleft
if switch3 = 0 then low led3
if switch4 = 1 then high led4
if switch4 = 0 then low led4
goto main

servocenter:
serout lcd1, t9600, [$fe,1," center"]
high led1
pulsout servo1, 150
pause 200
goto main

servoright:
serout lcd1, t9600, [$fe,1," right"]
high led2
pulsout servo1, 100
pause 200
goto main

servoleft:
serout lcd1, t9600, [$fe,1," left"]
high led3
pulsout servo1, 200
pause 200
goto main