I think, there is some misunderstanding.

Here what I need

Code:
code1:
if button=0 then goto code2
'somecode here
goto code1

code2:
if button=0 then goto code1
'somecode here
goto code2
So all I need is when user presses the button in code1, execution won't jump to code2 until he releases the button. And same for code2.