Re: Less Than x but greater than y
| From: | Ernest E Vogelsinger | Date: | Thu, 25 Jan 2001 13:50:48 +0000 |
| Subject: | Re: Less Than x but greater than y | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5208@lists.php.net to get a copy of this message | ||
At 14:46 25.01.2001, Ben Cairns said:
--------------------[snip]--------------------
>if ($answer == 0) { ?> 0 <? }; ?>
>if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 <? };
--------------------[snip]--------------------
this should do:
<?
if ($answer == 0)
print "0";
elseif ($answer > 0 and $answer <= 20)
print "more than 0 but less than or equal to 20";
else
print "below 0 or above 20";
?>
...ebird
>O Ernest E. Vogelsinger
(\) http://www.1-at-web.at/
^ ICQ# 13394035