Sign in Join
Wiki copytemporary

Revision 2 of 2, by Bart on 1-17-2020. The page as it is now.

Break/ru

Зарезервированное слово break - одна из команд цикла
Эта команда используется для выхода из цикла до его запланированного окончания.
Команда break может использоваться только внутри циклов.\

Пример:\

pascal
var
  intI: Integer;
  intA: Integer = 50;
begin
  for intI := 20 to 200 do
  begin
      ...
      if intI = intA then break; // При выполнении условия цикл завершается
      ...
  end;
end;

См. также


From the Free Pascal wiki, page "Break/ru", as it stood on 2020-01-17 after a change by Bart, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.