Results 1 to 4 of 4

Thread: break

  1. #1
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default break

    will break; break out of a for to do loop.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Yes.
    Administrator's Warning:


  3. #3
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Of course.

    Code:
    var
      i: Integer;
    
    begin
      ClearDebug;
      for i:= 1 to 10 do
      begin
        WriteLn(IntToStr(i));
        if(i >= 5)then
          Break;
      end
      if(i < 10)then
        WriteLn('Break used');
    end.
    Break works for everykind of loop..

    Edit: Dang, Sumilioooon!

  4. #4
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    ok thanks i didn't know if that worked for this type of loop as well.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. break?
    By faster789 in forum OSR Help
    Replies: 2
    Last Post: 03-31-2008, 03:11 AM
  2. Break;
    By macromacro123 in forum OSR Help
    Replies: 7
    Last Post: 03-13-2007, 02:52 AM
  3. Break here
    By break in forum News and General
    Replies: 1
    Last Post: 10-09-2006, 12:31 AM

Posting Permissions

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