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((
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
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
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
4 matches
Mail list logo