Sign in Join
Wiki copytemporary

Goto/ru: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Goto/ru

OldNewLine
1+**Goto** - безусловный переход на предварительно объявленную [[Label/ru|метку]] (либо до, либо после команды goto).
2+
3+Пример объявления метки и использования команды goto:
4+
5+``` pascal
6+var
7+ fWaterIsBoiling: Boolean;
8+
9+label
10+ SwitchOffKettle;
11+
12+begin
13+ ...
14+ if fWaterIsBoiling = True then Goto SwitchOffKettle;
15+ ...
16+SwitchOffKettle:
17+ ...
18+end;
19+```
20+
21+---
22+*From the Free Pascal wiki, page "Goto/ru", as it stood on 2020-02-16 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history