INCLAN: goto, go to: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
m (1 revision)
No edit summary
 
Line 1: Line 1:
== Synopsis ==
'''goto''' ''label''
'''go to''' ''label''


Usage: goto ''label''
== Description ==
      go to ''label''


The "goto" statement continues execution of a macro at the first  
Continues execution of a macro at the first line that begins with the label. Jumps into loops ([[INCLAN: do|'''do''']] . . . [[INCLAN: end do|'''end do''']]) or conditionally executed statements ([[INCLAN: if|'''if''']] . . . [[INCLAN: else|'''else''']] . . . [[INCLAN: end if|'''end if''']]) are not allowed and can lead to unpredictable results. A label may consist of letters, digits, and underscore characters “'''_'''”. A label must be followed by a colon.
line that begins with the label. Jumps into loops (do ... end do)
 
or conditionally executed statements (if ... else ... end if) are  
== Examples ==
not allowed and can lead to unpredictable results. A label may
 
consist of letters, digits, and underscore characters "_". A label
go to cont
must be followed by a colon.
  ...
cont: print "Now at label cont."

Latest revision as of 15:49, 13 August 2009

Synopsis

goto label go to label

Description

Continues execution of a macro at the first line that begins with the label. Jumps into loops (do . . . end do) or conditionally executed statements (if . . . else . . . end if) are not allowed and can lead to unpredictable results. A label may consist of letters, digits, and underscore characters “_”. A label must be followed by a colon.

Examples

go to cont
  ...
cont: print "Now at label cont."