A simple question about selecting a value 2

Sorry but I missed out somthing in my last question. The if and else is ok but there is a little bit more to it wich is the problem I can’t resolve

I have like
$value = “number”

If “$value” is >0 and < 10
print "text 1

If “$value” is >10 and < 20
print “text 2”

If “$value” is >20 and < 30
print “text 3”

If “$value” is >30 and < 40
print “text 4”

and so on
Regards Terje

<?php $value =10.50; If($value >0 && $value<= 10) { echo "text1"; } If($value>10 && $value< 20) { echo "text2"; } If($value>20 && $value< 30) { echo "text3"; } If($value>30 && $value< 40){ echo "text4";} ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service