User talk:E-ric: Difference between revisions

From Free Pascal wiki
Jump to navigationJump to search
(→‎Break/fr: new section)
 
(Blanked the page)
Line 1: Line 1:
== Break/fr ==


{{Break}}
The reserved word '''break''' is one of the [[Loops|loop commands]]<br>
The command is used to exit a loop before its planned end.<br>
The '''break''' command can only be used within loops.<br>
<br>
Example:<br>
<syntaxhighlight>
var
  intI: Integer;
  intA: Integer = 50;
begin
  for intI := 20 to 200 do
  begin
      ...
      if intI = intA then break; // If the condition is satisfied, the loop is terminated
      ...
  end;
end;
</syntaxhighlight>
== See also ==
* [[Reserved words]]

Revision as of 22:44, 21 August 2016