Re: Less Than x but greater than y

From: Date: Thu, 25 Jan 2001 13:54:10 +0000
Subject: Re: Less Than x but greater than y
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5209@lists.php.net to get a copy of this message
Ben Cairns wrote: > <? > if ($answer == 0) { ?> 0 <? }; ?> > if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 <? }; > ?> You should try: if ($answer > 0 && $answer <= 20) { dosomething; } Look up at Logical Operators reference in the manual. Bye -- __________________________________________________________________________________________ ========================================================================================== Jan Walter, called John LERACH, s.r.o. phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61 on emergency call cell phone: +420-602-385 760 work e-mail mailto:Jan.Walter@lerach.cz private e-mail mailto:john@lerach.cz ICQ#: 28353428 __________________________________________________________________________________________ ==========================================================================================

« previous php.windows (#5209) next »