ok what i am trying to do is math between different values and then echo something if that number is in between those values
//gives %
$bal = $other / $first + $second + $third;
//checks what percent is in between
if($bal < 50) {
echo "3pt";
}
//if below 50
if(51 < $bal && $bal < 75) {
echo "2pt";
}
//if above 51 and below 75
if(76 < $bal && $bal < 100) {
echo "1pt";
}
//if above 76 and below 100
echo $bal;
now that is what i got. but i know the value is 51 and yet it doesn't echo 2pt. what am i doing wrong? the below 50 works but the others don't
thanks