next up previous contents index
Next: ``Preprocessor'' Directives Up: Control Structures Previous: continue   Contents   Index

goto, label

goto name
label name

Execution can jump to an arbitrary location in a routine with the goto statement. Execution resumes at the statement following the associated label.

Example:

statements
if (z != 0)
goto error
end
statements ...
label error
Print("error occurred")



Stephen R. Whiteley 2024-09-29