Forum Moderators: coopster
does anyone know how to find if a number is negative without using the < 0 approach?
I am using that approach right now and it is not working.
This is what Ive done
if ($str ¦¦ $sta ¦¦ $agi ¦¦ $dex < 0)
{
echo 'You can not insert negative numbers please <a href="account.php">click here</a> to return to your account.';
echo $str.''.$sta.''.$agi.''.$dex;
exit;
}
but regardless of what I put in it continues to say its negative, even if all 4 numbers are positive.