in reply to How to no goto or gosub

Though very bad form, the first code you tried does work.