Kotlin 简明教程
Kotlin - Control Flow
Kotlin流控制语句确定要执行的下一条语句。例如,语句 if-else, if, when, while, for 和 do 是流控制语句。
Kotlin flow control statements determine the next statement to be executed. For example, the statements if-else, if, when, while, for, and do are flow control statements.
Flow Chart for Control Flow
控制流可以利用以下流程图描述:
Control flow can be depicted using the following Flow Chart: