Flow-control structures: Difference between revisions

Content added Content deleted
(+AutoHotkey)
m (→‎{{header|AutoHotkey}}: Minor indentation and casing edit)
Line 121: Line 121:
</pre>
</pre>
=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
<lang AutoHotkey>MsgBox, calling label1
<lang AutoHotkey>MsgBox, calling Label1
Gosub, Label1
Gosub, Label1
MsgBox, Label1 subroutine finished
MsgBox, Label1 subroutine finished
Goto Label2
goto label2
MsgBox, calling Label2 ; this part is never reached
msgbox, calling label2
Return
return


Label1:
Label1:
MsgBox, Label1
MsgBox, Label1
Return
return

Label2:
MsgBox, Label2 will not return to calling routine
Return</lang>


label2:
msgbox, label2 will not return to calling routine
return</lang>
=={{header|AWK}}==
=={{header|AWK}}==
Awk has ''break'' and ''continue'' for loop control, as in C.
Awk has ''break'' and ''continue'' for loop control, as in C.