Hi emanfman,
I agree with MOST of your post, but the syntax you give for the "if" statement is, while it will probably compile, misleading at best.
There is no multiple conditions separated by commas in an "if" statement. The syntax of the multiple types of "if" statement is as follows:
if ( condition ) statement1; if ( condition ) statement1; else statement2; if ( condition ) { statement1; statement2; } if ( condition ) { statement1; statement2; } else { statement3; statement4; }
Only the "for" statement has three parts to it, and they are separated by semicolons and not commas.
Tom
From the near JavaScript example he gave, with the conditions separated by &&, I use a comma because it makes the "if" statement true only if ALL the conditions are true. Technically, it is still correct to use the && though.