SRL Archive - Help

Breaking out a Repeat.


Mat

2012-06-11 13:58:07

Well, I have a repeat Function that repeats Until(False);
But Some reason, it keeps breaking out, with no log, on every Break; I have written something to say, Writeln('we have broken'); but it does netiher how else can it break out, theres No Exit; in that function either :/
Any ideas.
Mat

Runaway

2012-06-11 14:00:04

Break; or Continue; are the only ways it would be breaking from the loop. Could you post the code?

Mat

2012-06-11 14:04:19


If FindDead then
begin
Writeln('WERE FUCKING DEAD GTFO');
Break;
end;
If Breaker then
begin
writeln('We breaking the MOTHER FUCKING LOOP');
Break;
end;
Until(False);
theres the only two function that'll break out I took the func out search Exit; Break; Continue; only found them, Could running a Exit; in other function called in do it as all the function are like If Not this then breaker := true; exit;
Mat
E:I think i found my problem had a IF round the whole lot *FacePalm*
so if it couldnt do that one thing it'll exit.