Label problems

BlitzMax Forums/BlitzMax Beginners Area/Label problems

I have a label in my game and I want to do a goto. When I compile I get "Compile Error, Labels must appear before a loop or DefData statement", yet the example for "Goto" (in the docs) compiles fine. What is going on?

Thanks