创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


en:arduino:language:continue

continue

The continue statement skips the rest of the current iteration of a loop (do, for, or while). It continues by checking the conditional expression of the loop, and proceeding with any subsequent iterations.

Example

for (x = 0; x < 255; x ++)
{
    if (x > 40 && x < 120){      // create jump in values
        continue;
    }
 
    digitalWrite(PWMpin, x);
    delay(50);
}

Reference Home

本页面的其他翻译:
en/arduino/language/continue.txt · 最后更改: 2016/12/25 22:15 (外部编辑)