if ($status eq 'yes') { # commit changes # and then continue to check next row }