In Java we can make things like:
String output = "";
stop: {
// count 10 lines
for ( int row = 1; row <= 10; row++ ){
// count 5 columns
for ( int column = 1; column <= 5; column++ {
if ( row == 5 )
break stop;
output += "* ";
}
output += "\n";
}
output += "\nTerminated Ok.";
}
The result is a print of 10 lines, but it ends at 5:
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
Is there a Delphi equivalent?