RE: [PHP] Hi some logic help is required!!!!!
| From: | Niklas Lampén | Date: | Thu, 14 Mar 2002 12:07:08 +0000 |
| Subject: | RE: [PHP] Hi some logic help is required!!!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88475@lists.php.net to get a copy of this message | ||
Last X should be Y.
Niklas
-----Original Message-----
From: Niklas Lampén [mailto:niklas.lists@publico.fi]
Sent: 14. maaliskuuta 2002 14:05
To: Php-General
Subject: RE: [PHP] Hi some logic help is required!!!!!
First of all, take that 'I want to know when you received my e-mail'
-thingie away. It's anoying.
But to the solution:
if ((x < A || x > B) && (y < A || x > B))
{
do something..
}
Niklas
-----Original Message-----
From: Balaji Ankem [mailto:balaji.ankem@wipro.com]
Sent: 14. maaliskuuta 2002 13:51
To: Php-General
Subject: [PHP] Hi some logic help is required!!!!!
Hi friend,
I need some help on this logic...
1. I have some range (A to B) which is fixed and A,B are very large
numbers.(A<B)
2. I have X to Y and I want to check this range should not match with A
to B.
How can I check this?
Ex:
1) A=4 B=8
Totally 4 cases will come!!
X=2 Y=5
X=5 Y=6
X=2 Y=9
X=6 Y=9
In all the above cases that logic should return false.
How can I solve this?? Don't use for loop!!!!!(Because those are
very large numbers (chrores))
And logic should be simple and cute!!!!!
Cheers
Balaji
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php