Re: [PHP] if syntax using multiple conditions

2004-09-15 Thread Brian Anderson
Thanks! And, *wow* yes I just did try php2asp. Pretty good translation, although a few things need adjusting, it seems to do a remarkable job. I'll definitely have to play with it some more. :) -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread John Nichel
Brian Anderson wrote: What is the proper syndax in an if statement for containing multiple conditions? example: if ( condition1 && condition2 ) { dothis; } if ( condition1 && (condition2 || condition3) ) { dothis; } Both are valid. First example will validate if both condition1 and condi

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 11:32:00 -0500, Brian Anderson <[EMAIL PROTECTED]> wrote: > What is the proper syndax in an if statement for containing multiple conditions? > > example: > > if ( condition1 && condition2 ) { > > dothis; > } > > if ( condition1 && (condition2 || condition3) ) { > >

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread raditha dissanayake
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) ) { doth

[PHP] if syntax using multiple conditions

2004-09-13 Thread Brian Anderson
What is the proper syndax in an if statement for containing multiple conditions? example: if ( condition1 && condition2 ) { dothis; } if ( condition1 && (condition2 || condition3) ) { dothis; } I am trying to translate this from asp to php: If WhichAction = 7 And (InStr(filename, "\