RE: [PHP] Does this If statement make sense?
| From: | Jay Blanchard | Date: | Tue, 21 Feb 2006 16:04:46 +0000 |
| Subject: | RE: [PHP] Does this If statement make sense? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-230814@lists.php.net to get a copy of this message | ||
[snip]
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))
[/snip]
IF X then IF Y, W
IF X then IF NOT Y, Z
There is no ELSE to support the IF NOT X, if X does not exist then the
evaluation is over.