RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén

Last X should be Y.


Niklas


-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]] 
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:[EMAIL PROTECTED]] 
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.(Ahttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén

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:[EMAIL PROTECTED]] 
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.(Ahttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Ford, Mike [LSS]

> -Original Message-
> From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
> Sent: 14 March 2002 11:51
> 
> 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 
> 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?

If I understand you correctly, this should do it:

if (($X<$A && $Y<$A) || ($X>$B && $Y>$B)):
   // range X-Y is totally outside range A-B
else:
   // range X-Y overlaps A-B partially or totally
endif;

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Balaji Ankem


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

**Disclaimer
  


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php