Re: an if statement
| From: | Evgeny Pedya | Date: | Tue, 23 Mar 2004 06:40:53 +0000 |
| Subject: | Re: an if statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181234@lists.php.net to get a copy of this message | ||
Hello, Andy!
You wrote on Mon, 22 Mar 2004 22:59:02 -0500:
AB> was just wondering if the statement:
AB> if(!$name || !$comments){
AB> /*whatever here*/ }
AB> would be interpreted as : if either $name or $comments doesn't exist
AB> then....
AB> or how would the if statement be?? i need to check if the $name and
AB> $comments are empty/null because both $name and $comments are
AB> required to continue in the site (to make a post)..
Maybe?..
if (!isset($name) || !isset($comments))
{
/*whatever here*/
}