Does this If statement make sense?
| From: | Jeff | Date: | Tue, 21 Feb 2006 15:55:52 +0000 |
| Subject: | Does this If statement make sense? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230813@lists.php.net to get a copy of this message | ||
I'm again working with someone else's code and I have a problem I
believe is in the section below. The problem is, I can't seem to
understand what the "IF" conditions are saying here. The problem I have
is with the second condition. To me this reads in psudo code:
If( X and (if Y exists, then W otherwise Z))
Does this work? If so how is it evaluated?
Here is the actual code.
<code>
if ($tostaf && ($reply->comment ? $config->send_comment_staf :
$config->send_emailreply_staf))
{
$to=array();
$vars["ticketurl"]=$config->webpath."ticket.php?id=".$ticket->id;
if ($reply->comment) {
$condition=" AND followups.employee<>'$reply->employee'";
}
</code>
Thanks,
Jeff