Re: if syntax using multiple conditions
| From: | raditha dissanayake | Date: | Mon, 13 Sep 2004 17:09:36 +0000 |
| Subject: | Re: if syntax using multiple conditions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196524@lists.php.net to get a copy of this message | ||
Brian Anderson wrote:
What is the proper syndax in an if statement for containing multiple conditions? both examples you have given are valid but their logic is slightly different.
example: if ( condition1 && condition2 ) { dothis; } if ( condition1 && (condition2 || condition3) ) { dothis; } I am trying to translate this from asp to php: how about using the asp2php program?-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.