Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#15

AW: if not abfragen

  Alt 12. Okt 2010, 12:53
Das hier
Delphi-Quellcode:
  begin
  if not((edit3.text='1') and (edit2.text='1'))
  then
  showmessage('vorbei')
  end;
ist das Gleiche wie das hier (alle Klammern beachten)
Delphi-Quellcode:
begin
  if not(edit3.text='1') OR not (edit2.text='1')
  then
  showmessage('das game ist vorbei')
  end;
denn
Code:
not A or not B = not ( A and B )
not ( A and B ) <> not A and B
Wer es nicht glaubt macht sich eine Wertetabelle
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat