Re: [PHP] Very Simple one for u all :-)

2004-01-15 Thread Marek Kilimajer
http://sk2.php.net/manual/en/language.operators.logical.php either one of OR or || would do Dave Carrera wrote: Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this If((

Re: [PHP] Very Simple one for u all :-)

2004-01-15 Thread Louie Miranda
ED]> Sent: Thursday, January 15, 2004 3:23 PM Subject: [PHP] Very Simple one for u all :-) Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this If(($var == val) || ($var2

Re: [PHP] Very Simple one for u all :-)

2004-01-15 Thread Nitin Mehta
i dont c any shortcomings in the syntax, may b i'm sleepy myself but isn't it working... - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 12:53 PM Subject: [PHP] Very Simple one f

[PHP] Very Simple one for u all :-)

2004-01-15 Thread Dave Carrera
Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this If(($var == val) || ($var2 == val2)){ Blah blah } I think this is a if var == val AND var2 == val2 then onwards but