Sign in Join
Wiki copytemporary

Break/es: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Break/es

OldNewLine
1+La palabra reservada **break** es uno de los comandos de los bucles (loops). Este comando se utiliza para salir de un bucle antes de que el mismo finalice. Solo se puede usar dentro de bucles.
2+
3+Ejemplo:
4+
5+``` pascal
6+var
7+ intI: Integer;
8+ intA: Integer = 50;
9+begin
10+ for intI := 20 to 200 do
11+ begin
12+ ...
13+ if intI = intA then break; // Si se satisface la condición entonces se sale del bucle, se finaliza el mismo.
14+ ...
15+ end;
16+end;
17+```
18+
19+## Ver también
20+
21+- [[Reserved words]]
22+
23+---
24+*From the Free Pascal wiki, page "Break/es", 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](/wiki-contact).*

Back to history