Thema: Delphi Bedingte Bedingung

Einzelnen Beitrag anzeigen

Benutzerbild von nailor
nailor

Registriert seit: 12. Dez 2002
Ort: Karlsruhe
1.989 Beiträge
 
#8
  Alt 24. Feb 2003, 16:24
Zitat von sakura:
Wie gemein Ich denke mal, was Oki wollte ist

Delphi-Quellcode:
res := (a and b and c) or ((not a) and b);
if res then
  ...
oder kürzer
Delphi-Quellcode:
if (a and b and c) or ((not a) and b) then
  ...
Das ist alles was ich dazu sagen. Mit Genugtuung stell ich fest, dass ich nicht nur mich verwirrt habe

Damit ist die Sache wohl geklärt,

...außer wir machen ne neue Abteilung "What does this evaluate to?" auf, mit lustigem boolean-Rechnen für alle
Michael N.
http://nailor.devzero.de/code/sharpmath/testing/ --- Tests, Feedback, Anregungen, ... aller Art sehr willkommen!
::: don't try so hard - it'll happen for a reason :::
  Mit Zitat antworten Zitat