goTo

Help Contents Control Structures goTo
continue Tag

goTo word


command. Looks for a Tag command with the same input in the same procedure, and continues running the procedure from the location of that tag. It is meaningless to use GOTO outside of a procedure.

But be aware, goTo is a rather slow command, as it searches the current procedure until it finds the tag or till its end (with an error message).

Examples:

to t
	Tag "one
	pr 1
	goTo "two
	pr 5
	Tag "two
	pr 2
	goTo "one
end
;t defined
t

will print 1 and 2 alternately until you press control-q (stop).

See also:

Reference:

continue Tag