Re: Very Simple one for u all :-)

From: Date: Thu, 15 Jan 2004 08:00:13 +0000
Subject: Re: Very Simple one for u all :-)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174623@lists.php.net to get a copy of this message
i dont c any shortcomings in the syntax, may b i'm sleepy myself but isn't it working....... ----- Original Message ----- From: "Dave Carrera" <dave@ephgroup.com> To: <php-general@lists.php.net> Sent: Thursday, January 15, 2004 12:53 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 == val2)){ > > Blah blah > } > > I think this is a if var == val AND var2 == val2 then onwards but I need OR, > so one or the other. > > Sorry this is so basic but not had enough coffee to sort this out yet, looks > like a bad day for me ahead :-) > > Thank you in advance for any help. > > Dave C > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.560 / Virus Database: 352 - Release Date: 08/01/2004 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#174623) next »