Log in

View Full Version : Breaking out a Repeat.



Mat
06-11-2012, 05:58 PM
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
06-11-2012, 06:00 PM
Break; or Continue; are the only ways it would be breaking from the loop. Could you post the code?

Mat
06-11-2012, 06:04 PM
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.