On Mon, 1 Jul 2019 13:37:54 -0400, "James Richters"
<[email protected]> wrote:

>For X := 1 to 10 do
>   Begin
>       If somethingmakesmewanttoexit then
>            X:=10;
>       If somethinmakesmewanttoskipthenextthing then
>           Inc(X);
>   End;

Why not:
For X := 1 to 10 do
   Begin
       If somethingmakesmewanttoexit then
            break;
       If somethinmakesmewanttoskipthenextthing then
           continue;
       Regularprocessing;
   End;



-- 
Bo Berglund
Developer in Sweden

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to