if statements must have multiple statements inside curly braces: |
if ( condition ) { |
statement1; statement2; |
} else { // optional of course |
statement3; statement4; |
} |
Note: there is no else if construct |
for and while are essentially the same as in Java: |
for ( init-exp; condition; incr-exp ) { |
statement1; statement2; |
} |
while ( condition ) { |
statement1; statement2; |
} |
break and continue in for and while loops are permitted. Named break as in Java or PERL are not supported. |