The only issue with using 'and' as I understand it is that it has a lower
precedence than &&, so sometimes you end up having to put in more
parentheses.  I usually opt for using && just so I know where I stand and
use parentheses and algorithmic contortions to make it say what I need.

-----Original Message-----
From: drieux
To: [EMAIL PROTECTED]
Sent: 5/15/02 8:50 AM
Subject: and v. c-code style Re: If...


On Wednesday, May 15, 2002, at 02:46 , Felix Geerinckx wrote:

> on Wed, 15 May 2002 09:30:04 GMT, [EMAIL PROTECTED]
> (Stefan Haberer) wrote:
>
>>           if    (   0 <= $avg_speed <=   5 )   { $speed_cost_code
>
> You need
>
>     if ( 0 <= $avg_speed && $avg_speed <= 5 ) { ... }

is there any issue with using 'and' one way or
the other....


ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to