Re: How to check "false" ?
| From: | Romulo Roberto Pereira | Date: | Wed, 03 Jan 2001 18:29:24 +0000 |
| Subject: | Re: How to check "false" ? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4767@lists.php.net to get a copy of this message | ||
put like this:
$check_email_command_variable = emailcommand();
if ($check_email_command_variable) {
... do something here...
} else {
... do something here...
}
>
> I need to check if an email (mail command) action
> was sucseefully performed.
>
> What can I use ?
>
> Hezy
> ==========
>
> > if ($var) {
> > do if true
> > } else {
> > do if false
> > }
> >
> > Or if it's a parameter passed by URL, a better way is:
> > if (isset($var)) {
> > etc...
> >
> > Or if you want to check for false:
> > if (!$var) {
> > etc...
> >
> > Or:
> > if (!isset($var)) {
> > etc...
> >
> > Is this what you mean by simple true/false checking?
> >
> > Gonzalo.
> >
> > > I could not find any documentation about simple checking
> > > for false (or true).
>
> > > what are the best ways for that ?
>
> > > Hezy
>
>
>
>
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-windows-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>