目录

continue

描述 (Description)

此函数是流控制语句而不是函数。 如果有一个BLOCK附加的BLOCK(通常是一段时间或者一段时间),它总是在条件即将被再次评估之前执行,就像C中for循环的第三部分一样。

因此,它可以用于递增循环变量,即使循环已经通过next语句继续。 last, next,redo可能出现在continue块中。

语法 (Syntax)

以下是此函数的简单语法 -

continue BLOCK

返回值 (Return Value)

此功能不返回任何内容。

例子 (Example)

以下是显示其基本用法的示例代码 -

while (EXPR) {
   ### redo always comes here
   do_something;
} continue {
   ### next always comes here
   do_something_else;
   # then back the top to re-check EXPR
}
### last always comes here
↑回到顶部↑
WIKI教程 @2018