RE: [PHP] Complex IF statement

From: Date: Fri, 23 Mar 2001 16:07:15 +0000
Subject: RE: [PHP] Complex IF statement
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45302@lists.php.net to get a copy of this message
if (($variable=="duck") || ($variable=="goose")) { } else { } -----Original Message----- From: JCampbell [mailto:jcampbell@programmer.net] Sent: Tuesday, December 12, 2000 11:19 PM To: Main PHP List Subject: [PHP] Complex IF statement Thank you all for your help earlier! Now I need to know if it is possible to create a complex if statement? if ($variable=="duck") || ($variable=="goose"){ }else{ } Is how I thought it would work. I just need to know if there is an easy way to do an OR in if statements IF variable equals duck or goose... <Jon> =============================== And shepards we shall be For thee, my lord, for thee For thou hath descended forth from thy hands That our feats may swiftly carry out thy command We will flow a river forth unto thee And teaming with souls shall it ever be... =============================== http://jcampbell.blacklightning.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#45302) next »