Sign in Join
Wiki copytemporary

In/de: what changed

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

Title: In/de

OldNewLine
1+Zurück zu den [[Reserved words/de|reservierten Wörtern]].
2+
3+Das reservierte Wort <b>in</b> dient der Verarbeitung von Mengen.
4+
5+Das reservierte Wort <b>in</b> prüft, ob ein Ausdruck in einer Menge vorkommt.
6+
7+Beispiel:
8+
9+``` pascal
10+var
11+ blnX: Boolean;
12+begin
13+ ...
14+ blnX := 2 in [0..50];
15+ ...
16+end;
17+```
18+
19+Beispiel:
20+
21+``` pascal
22+var
23+ chrX: Char;
24+begin
25+ ...
26+ repeat
27+ ...
28+ chrX := ...
29+ ...
30+ until chrX in ['A', 'B', 'C']; // Die Schleife wird beendet, wenn die Bedingung Wahr ist.
31+ // Das heisst, wenn der Wert in der Variablen chrX in der Menge ['A', 'B', 'C'] vorkommt,
32+ // dann ist die Bedingung erfüllt.
33+ ...
34+end;
35+```
36+
37+---
38+*From the Free Pascal wiki, page "In/de", as it stood on 2020-04-07 after a change by Mathias, 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