next up previous contents index
Next: The If..then..else statement Up: Statements controlling program flow. Previous: The For..to/downto..do statement

The Goto statement

Free Pascal supports the goto jump statement. Its prototype is

var
  jumpto : label
...
Jumpto : 
  Statement;
...
Goto jumpto;
...
The jump label must be defined in the same block as the Goto statement. To be able to use the Goto statement, you need to specify the -Sg compiler switch.

Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998