Well, Munair, you missed the point: the point is that to set a boolean condition from a system of boolean conditions you do not over use if/then/else, because such a system can
always be resolved using boolean math only.
Both I and skalogryz gave simple examples.
Here's your example my way:
if (condition1 and condition2) then
begin
statement1;
statement2;
end
else if (condition3 and condition4) then
begin
statement3;
statement4;
end else statement4;
This code will execute much faster. [I made some edits]
I can probably improve on this too:
case condition of
condition1 and condition2:
begin
statemen1;
statement2;
end;
condition3 and condition4:
begin
statement3;
statement4;
end;
else
statement4;
end;