SCAR Code:
Procedure Three(Four : Integer);
Begin
If(Four <= 7) Then
Begin
Wait(1000)
One(Four);
End else
//Dostuff <-- this will be done conditionally
//This will be done regardless
end;
If the //Dostuff after End else is more than one line, it will apply the else condition only to the first line following it, then execute the rest of the code regardless.
Consider:
SCAR Code:
Procedure Three(Four : Integer);
Begin
If(Four <= 7) Then
Begin
Wait(1000)
One(Four);
End else
begin
//Dostuff
//DoMoreStuff <-- both of these will be executed conditionally
end;
end;