$a++ while not $error || $a >= $b; $a = $b unless $error or $a >= $b;