Thanks for all the responses. I think I'm getting it :)


Quote Originally Posted by JSoftware
Your particular C code would be this in pascal:
[pascal]
if x <= y then
do_stuff()
else if ... then
begin
do_otherstuff();
do_more();
end
else if ... then
do_this()
else
begin
do_that();
do_this();
end;
[/pascal]
So if I understand the whole shebang correctly, my safest bet would be to:

(1) always put a BEGIN-END
(2) always use a ; after every call or expression, etc.
(3) to use ONE ; after the final END to signify the end of the WHOLE thing (that started at the first IF), and I should not use a ; right after any other keyword?