The following example jumps out of a loop-statement:
Code: Select all
sub sub1()
dim n:int = 0;
do
loop do
if n == 6 do
jump @here;
end
n = n + 1;
end
@here;
print(n);
end
Code: Select all
sub sub1()
dim i, j, k: itr;
do
for i = 1 to 9 :++ do
for j = 1 to 5 :++ do
for k = 1 to 3 :++ do
if i == 6 do
jump @thend;
end
end
end
end
@thend;
print(i);
end