RosettaCodeData/Task/Loops-Break/LiveCode/loops-break.livecode
2016-12-05 23:44:36 +01:00

8 lines
205 B
Text

command loopForeverRandom
repeat forever
put random(20) - 1 into tRand
put tRand
if tRand is 10 then exit repeat
put random(20) - 1
end repeat
end loopForeverRandom