Results 1 to 3 of 3

Thread: Breaking out a Repeat.

  1. #1
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default Breaking out a Repeat.

    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



    ^^

  2. #2
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

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

  3. #3
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Simba Code:
    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.



    ^^

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •