Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] 'OR' problem From: Rasmus Lerdorf (rasmus <email protected>)
Date: 01/08/99

> Is there a problem with using '||' ?
>
> The following doesn't ever want to return true:
>
> $var1="A";
> $var2="X";
> if ($var1=="A" || $var2 =="B")
> ....
>
> Remove the second part of the || and it will work okay. Using PHP
> V3.0.1. Couldn't see a fix in the change log but maybe I missed it.

What is it that doesn't work? The above has always worked. You probably
have some other mistake. Show more of your code and tell us exactly the
error you are getting.

-Rasmus

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev <email protected>