Sign in Join
Wiki copytemporary

And/de

Deutsch · English · Español · Français · Suomi · Русский

Zurück zu den reservierten Wörtern.

And gibt einen Wahrheitswert (True oder False) zurück.

Ein Ausdruck ist dann Wahr, wenn beide Seiten des Operators Wahr sind.

Beispiel:

pascal
  ...
  // Wenn das Ergebnis der Bedingung wahr ist, dann wird die Anweisung (der Anweisungsblock), die (der) auf die Bedingung folgt abgearbeitet
  if (intA <> intB) And (intC <> intD) then // ist Wahr (True) wenn beide Seiten Wahr (True) sind ansonsten ist das Ergebnis False
  ...

Beispiel für eine komplexere Abfrage:

pascal
  ...
  // Wenn das Ergebnis der Bedingung wahr ist, dann wird die Anweisung (der Anweisungsblock), die (der) auf die Bedingung folgt abgearbeitet
  if ((intA <> intB) And (intC <> intD)) And (intE <> intF) then // ist Wahr (True) wenn alle Seiten Wahr (True) sind ansonsten ist das Ergebnis False
  ...

--Olaf 17:09, 24 October 2012 (UTC)


From the Free Pascal wiki, page "And/de", as it stood on 2020-01-26 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.

Revision 1, last changed by WikiArchive .

Talk about this page

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