if ($repneg) { if (($nfactor < 1 and $nfactor > 0) and $score == -1) { $score = -1; } else { $score = intval($nfactor*$score); } }