|
| 09 Aug 2013 09:28 PM |
| By break, I just mean any way to get out of a for loop before it's supposed to end? |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2013 09:29 PM |
Use break.
Got a problem with me? Take it up with my butt because it's the only one that gives a crap. |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
| |
|
Misplace
|
  |
| Joined: 17 Aug 2011 |
| Total Posts: 5556 |
|
|
| 09 Aug 2013 09:29 PM |
Yup.
a = 1 while true do print("your welcome ;p") a=a+1 if a>50 then break end end
☓~MP~☓ |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2013 09:29 PM |
for i = 1, 10 do if i == 5 then break end print(i) end |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2013 09:44 PM |
It's funny because your answer was in your question. Next time, just type out the question in the editor! Lol! :D |
|
|
| Report Abuse |
|
|