break

本参考资料用于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.

名称

break

示例
 char letter = 'B';

 switch(letter)
{  
case 'A':     
println("Alpha");

// Does not execute     break;

 
case 'B':     
println("Bravo");

// Prints "Bravo"     break;

 
default:    
println("Zulu");


// Does not execute     break;


  } 
描述 Ends the execution of a structure such as switch, for, or while and jumps to the next statement after.
相关 switch
for
while

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

break