Sign in Join
Wiki copytemporary

Revision 2 of 2, by Mathias on 4-7-2020. The page as it is now.

In/de

Zurück zu den reservierten Wörtern.

Das reservierte Wort in dient der Verarbeitung von Mengen.

Das reservierte Wort in prüft, ob ein Ausdruck in einer Menge vorkommt.

Beispiel:

pascal
var
  blnX: Boolean;
begin
  ...
  blnX := 2 in [0..50];
  ...
end;

Beispiel:

pascal
var
  chrX: Char;
begin
  ...
  repeat
    ...
    chrX := ...
    ...
  until chrX in ['A', 'B', 'C'];  // Die Schleife wird beendet, wenn die Bedingung Wahr ist.
                                  // Das heisst, wenn der Wert in der Variablen chrX in der Menge ['A', 'B', 'C'] vorkommt,
                                  // dann ist die Bedingung erfüllt.
  ...
end;

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.