in reply to backwards if and while looping

Some other alternatives not yet mentioned:

while (not $error and $a < $b) { $a++; }

and

do { while ($a < $b) { $a++; } } if (not $error);

and

do { $a++ while ($a < $b); } if (not $error);