will break; break out of a for to do loop.
will break; break out of a for to do loop.
Of course.
Break works for everykind of loop..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.
Edit: Dang, Sumilioooon!![]()
ok thanks i didn't know if that worked for this type of loop as well.
There are currently 1 users browsing this thread. (0 members and 1 guests)