ExecutableStatement ::= FunctionStatement – (TextLabel | CaseLabel |
DefaultLabel)
IfStatement ::= ‘if’ S? ConditionalExpression S? (ExecutableStatement |
BracedStatements) S? (‘else’ S (ExecutableStatement | BracedStatements))?
The “if” and “else” statements indicate conditional
statement execution. The first (or only) statement or
statement block is executed only if the conditional expression
is true; the statement or statement block after the “else” is executed, if it
exists, only if the conditional expression is false.
See also: [Evaluation and null
statements] [The "goto" statement and text labels]
[The "return" statement] [The
"if" and "else" statements]
[The "for" statement] [The
"while" statement] [The "do" statement] [The
"switch," "case," and "default" statements]
[The "break" statement] [The
"continue" statement] [Opcode and mod byte
escape sequences]
|