|
||||||||||||
|
|
||||||||||||
StatementsStatements are the imperative way of doing things. Definition statements are used to declare language constructs, these are the stuff that expressions and other statements work with. Simple statements may not contain other statements. Expression statements contains expression. Compound statements may contain other statements, and they are typically used to alter the flow of control. statement := ( assert | break | catch | continue | empty | exit | expr-stmt | finally | if | print | return | synchronized | throw | try | yield | [ label ] block | [ label ] do | [ label ] for | [ label ] foreach | [ label ] switch | [ label ] while )
See also
| Language reference
| Functions and methods
| Block
| Catch
| Do .. while
| Finally
| For
| Foreach
| Switch
| Synchronized
| Try
| While
| Templates
| Tags
| <eval>
| If
| Inline functions
| Grammar
|
||||||||||||
|
|
||||||||||||