RE: Does this If statement make sense?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux