120ThingsIn20Years
Senior Member
Is it best practice to use a GoTo in this situation?
Or should this be in another Do loop in some form?
I guess the question is, If there is nothing conditional, is a GoTo ok?
Or should this be in another Do loop in some form?
I guess the question is, If there is nothing conditional, is a GoTo ok?
Code:
Main:
Gosub Init ' populate some variables
Continue:
'
Do until pin3 = 1
'
' Add the rest of your Main: code here
'
Loop
'
gosub WaitForRelease 'wait until you let go of the button so you dont skip a mode
gosub ChangeMode
Goto Continue
End