Sign in Join
Wiki copytemporary

In/de

Deutsch · English · Suomi

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.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.