Autor Beitrag
beljo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129



BeitragVerfasst: Mo 13.03.06 09:33 
Hallo Leute,
möchte gerne mit der If-Schleife zwei Bedingungen aufeinmal abfragen. if a =b and b=c then...
So funktioniert es nicht und so if a=b and if b=c then...
auch nicht. Was mache ich falsch?
Ist es überhaupt möglich zwei Bedingungen aufeinmal abzufragen? Ich möchte ´nicht Verschachtelt abfragen, weil es schlecht zu lesen ist.
bedanke mich im vorraus.


Moderiert von user profile iconGausi: Topic aus Dateizugriff verschoben am Mo 13.03.2006 um 09:44
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 13.03.06 09:42 
:welcome: in der Entwickler-Ecke.

1. Es gibt keine If-Schleife :zwinker:
2. Source-Beispiel:
ausblenden Delphi-Quelltext
1:
if (a =b) and (b=c) then					
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 13.03.06 09:43 
Da musst du klammern:

ausblenden Delphi-Quelltext
1:
if (a=b) AND (b=c)					


P.S. www.if-Schleife.de :zwinker:

_________________
We are, we were and will not be.
beljo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 129



BeitragVerfasst: Mo 13.03.06 10:50 
Danke Leute :-)
Und ja eine If Schleife gibt es wirklich nicht...