User Tools

Site Tools


el:goto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

el:goto [2016/01/01 22:39]
el:goto [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Goto =====
 +==== Format ====
 +goto //label//
 +==== Description ====
 +Jumps to the specified label.
 +==== See Also ====
 +[[gosubreturn|Gosub]]
 +==== Example ====
 +<code>
 +print "I";
 +goto skipit
 +print " don't";
 +skipit: #
 +print " want cookies."
 +</code>
 +will print
 +<code>
 +I want cookies.
 +</code>
  
 +==== Notes ====
 +As of version 0.9.9.2 [[goto|Goto]], [[gosubreturn|Gosub]], and labels can not be used in [[Function|Function]] and [[Subroutine|Subroutine]] definitions.