continue

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

continue

示例

for (int i = 0;

i < 100;

i += 10)
{  
if (i == 70)
{  // If 'i' is 70,     continue;

// skip to the next iteration,  
  }   // therefore not drawing the line.   line(i, 0, i, height);


  } 
描述 When run inside of a for or while, it skips the remainder of the block and starts the next iteration.
语法
 continue 
相关 for
while

Updated on October 2, 2018 05:02:16pm EDT

continue