Difference between revisions of "User talk:E-ric"
From Free Pascal wiki
Jump to navigationJump to search (→Break/fr: new section) |
(No difference)
|
Revision as of 22:41, 19 August 2016
Break/fr
│
English (en) │
The reserved word break is one of the loop commands
The command is used to exit a loop before its planned end.
The break command can only be used within loops.
Example:
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;