Hey I’m trying to stop 2 for but when I use break
it only stop the secound for but the first for stars again
for i = 0, 4, 1 do
for y = 0, 6, 1 do
if y == 3 then
break
end
print(y)
end
end
this is what the terminal shows
2012-12-11 14:30:36.222 Corona Simulator[55149:f03] 0
2012-12-11 14:30:36.223 Corona Simulator[55149:f03] 1
2012-12-11 14:30:36.223 Corona Simulator[55149:f03] 2
2012-12-11 14:30:36.227 Corona Simulator[55149:f03] 0
2012-12-11 14:30:36.227 Corona Simulator[55149:f03] 1
2012-12-11 14:30:36.231 Corona Simulator[55149:f03] 2
2012-12-11 14:30:36.231 Corona Simulator[55149:f03] 0
2012-12-11 14:30:36.232 Corona Simulator[55149:f03] 1
2012-12-11 14:30:36.232 Corona Simulator[55149:f03] 2
2012-12-11 14:30:36.233 Corona Simulator[55149:f03] 0
2012-12-11 14:30:36.233 Corona Simulator[55149:f03] 1
2012-12-11 14:30:36.234 Corona Simulator[55149:f03] 2
2012-12-11 14:30:36.234 Corona Simulator[55149:f03] 0
2012-12-11 14:30:36.234 Corona Simulator[55149:f03] 1
2012-12-11 14:30:36.234 Corona Simulator[55149:f03] 2
anyone can tell me how to stop this two for when the first y == 3 is fired ? [import]uid: 23063 topic_id: 33870 reply_id: 333870[/import]