Thursday, May 3, 2012

loop 내의 break 문

 local a = {"Red", "Green", "Blue", "Yellow", "Purple"}  
 for i, color in pairs(a) do  
      print(color)  
      if color == "Yellow" then break end  
 end  

No comments:

Post a Comment