RE: [PHP] Help with Logical 'OR'

2002-01-28 Thread Martin Towell
hope that explains it a bit furthur Martin -Original Message- From: jv [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help with Logical 'OR' Thanks Matt, Jeff, and Sam (BTW Sam, for some reason your post didn

Re: [PHP] Help with Logical 'OR'

2002-01-28 Thread jv
Thanks Matt, Jeff, and Sam (BTW Sam, for some reason your post didn't come to me on the list through regular email- I found it when I did a search in the archives at php.net. I 'm pretty sureI didn't delete it. I mention this because I'm sure the list server hiccups sometimes and I'd hate to offen

Re: [PHP] Help with Logical 'OR'

2002-01-28 Thread Sam Masiello
er Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "jv" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 3:04 PM Subject: [PHP] Help with Logical 'OR' > It seems that only the first condition is being evaluated. &g

Re: [PHP] Help with Logical 'OR'

2002-01-28 Thread Jeff Sheltren
With a logical OR statement, many languages will evaluate the first statement, and if the first condition is true, then it will not evaluate the second condition, because TRUE OR (anything) is TRUE. This saves the program from executing any more code than it has to. If the first condition is

[PHP] Help with Logical 'OR'

2002-01-28 Thread jv
It seems that only the first condition is being evaluated. I know that if both of the following conditions are false then the second set of statements should get read, and that's what happens, but when I set $name to true and $text to false (true||false) then the first set gets read. Shouldn't