Goto Statements

The goto flow control statement can redirect execution to continue at an arbitrary Labeled Statement within the same scope.

goto is supported for legacy reasons, but should generally not be used in regular code, as most logic flow is better expressed using proper Loop Statements.

Examples

writeLn('Hello');

if x > 5 then
  goto Here;

writeLn('x is five or less');

Here: begin
  writeLn('World');
end;

See Also