Vous n’êtes pas connecté.
Assassin
Senior Member
Citation
IF-Statements
There are two forms of if statement: if...then and the if...then...else. The syntax of an if...then statement is
if expression then statement
where expression returns a Boolean value. If expression is True, then statement is executed; otherwise it is not. For example,
if J <> 0 then Result := I/J;
The syntax of an if...then...else statement is
if expression then statement1 else statement2
where expression returns a Boolean value. If expression is True, then statement1 is executed; otherwise statement2 is executed. For example,
if J = 0 then
Exit
else
Result := I/J;
The then and else clauses contain one statement each, but it can be a structured statement. For example,
if J <> 0 then
begin
Result := I/J;
Count := Count + 1;
end
else if Count = Last then
Done := True
else
Exit;
Zitat von »Dino«
...lauter spinner
(wehe, das nimmt jemand in seine sig)
dino
Ojo
Non enregistré
Citation de "Man_In_Blue"
begin
if edit1.text:=2 then panel1.color:=clred;
end;
-