Hi Jon,
Your brackets are just a bit out of sync:
Here is a version that parses. You will have to make sure that my change
does not affect your intended logic.
if (
($this->checkReferralCB($this->benefitRef,
$this->benefitNo,$this->childDOB)) &&
(!$this->checkLocation($this->post, "W")) &&
(!empty($this->childDOB)) ||
($this->checkPregnancy($this->benefitRef, $this->benefitNo))
)
Best Regards,
Patrick Lynch.
Optip Ltd, Internet & Mobile Development
http://www.optip.com/
-----Original Message-----
From: Jon Yates [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2002 15:04
To: '[EMAIL PROTECTED]'
Subject: [PHP] IF Statements
People, hope you can help. The below IF statement is getting a PARSE
error. Can anyone spot why?
Cheers.
Jon
if (($this->checkReferralCB($this->benefitRef, $this->benefitNo,
$this->childDOB))
&& (!$this->checkLocation($this->post, "W")) &&
(!empty($this->childDOB)))
|| ($this->checkPregnancy($this->benefitRef, $this->benefitNo))
<<JYvCard.vcf>>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php