RE: [PHP] IF Statements

From: Date: Wed, 15 May 2002 14:23:49 +0000
Subject: RE: [PHP] IF Statements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97725@lists.php.net to get a copy of this message
[snip] People, hope you can help. The below IF statement is getting a PARSE error. Can anyone spot why? if (($this->checkReferralCB($this->benefitRef, $this->benefitNo, $this->childDOB)) && (!$this->checkLocation($this->post, "W")) && (!empty($this->childDOB))) || ($this->checkPregnancy($this->benefitRef, $this->benefitNo)) [/snip] It's not complete, where is the {} curly braces? And you're parentheses are out of order by one... if (($this->checkReferralCB($this->benefitRef, $this->benefitNo, $this->childDOB)) && (!$this->checkLocation($this->post, "W")) && (!empty($this->childDOB)) || ($this->checkPregnancy($this->benefitRef, $this->benefitNo))) standard... If((this) && (that) && (theother) || (something else)){ do this } Jay

« previous php.general (#97725) next »