|
|
3 лет назад | |
|---|---|---|
| .. | ||
| README.md | 93e7a37493 Start updating control flow design (#544) | 4 лет назад |
| conditionals.md | e05225f90a Fix conditionals link style (#726) | 4 лет назад |
| loops.md | 8d3d1b1233 Flesh out loops docs a little (#729) | 4 лет назад |
| return.md | b17e69aefd Design overview update part 1 (#1274) | 3 лет назад |
Blocks of statements are generally executed linearly. However, statements are the primary place where this flow of execution can be controlled.
Carbon's flow control statements are:
if and else provides conditional execution of
statements.return ends the flow of execution within a function,
returning it to the caller.