Re: Short writage of clauses
| From: | Dave Goodchild | Date: | Mon, 12 Jun 2006 09:35:36 +0000 |
| Subject: | Re: Short writage of clauses | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237785@lists.php.net to get a copy of this message | ||
On 12/06/06, Barry <barry@flyerheaven.de> wrote:
Hi everyone! Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong because "2" will always be true ... Any infos on that would be nice :) Greetsif ((a==1) || (a==2)) { -- http://www.web-buddha.co.uk dynamic web programming from Reigate, Surrey UK (php, mysql, xhtml, css) look out for project karma, our new venture, coming soon!Barry