Free Pascal supports the goto jump statement. Its prototype syntax is
When using goto statements, the following must be kept in mind:
Remark: In iso or macpas mode, or with the modeswitch ”nonlocalgoto”, the compiler will also allow non-local gotos.
Goto statements are considered bad practice and should be avoided as much as possible. It is always possible to replace a goto statement by a construction that doesn’t need a goto, although this construction may not be as clear as a goto statement. For instance, the following is an allowed goto statement: