while (1) { S; # make a calculation last if (B); # drop out when the result is right T; # adjust the parameters for another try }