![]() |
| ||||||||||||||||||
![]() |
| ||||||||||||||||||
|
Like C and Python, Yanaconda supports the 'break' statement to stop a loop. In addition,
it is possible to specify the number of nested loops to stop right after the 'break'.
i = 0
while 1
Print (i)
if i==5
break
i = i+1
0
1
2
3
4
5
for i=1 to 3
for j=10 to 15
Print (i)-(j)
if j==12
break 2
1-10
1-11
1-12
| ||||||||||||||||||