Re: IF Statements

From: Date: Thu, 16 May 2002 09:07:55 +0000
Subject: Re: IF Statements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97882@lists.php.net to get a copy of this message
Jon Yates wrote:
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))
Geez, use your editors paren-matching capabilities. Any modern editor should notify you that you are missing the last parentheses in if clause. I recommend emacs or vi.

« previous php.general (#97882) next »