Goto/fr: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Goto/fr
| Old | New | Line | |
|---|---|---|---|
| 1 | + | **Goto** est un saut inconditionnel vers une [[Label/fr|étiquette]] précédemment déclarée (soit avant soit après la commande goto). | |
| 2 | + | ||
| 3 | + | Exemple de déclaration d'une étiquette et d'emploi de 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/fr", 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).* |
