goto and labels

BlitzMax Forums/BlitzMax Beginners Area/goto and labels

Hello,

I'm learning Blitz Basic from the book "Game Programming for Teens". I have gathered that Blitz Max differs in some respects from the code used in the book.

The book has an example using goto and labels, here:

----------

.label
Print "Hello"
selection = Input("Enter 1 if you want me to repeat 'Hello' ==> ")
If (selection = 1)
Goto label
EndIf
End

----------

The label seems to be goofing up. Can someone tell me how to use gotos and labels in Blitz Max?

Thanks.