Jay,
Thanks. Sth new learned :) Thought mine was working. It wasn't I guess.
I received no errors. I have other scripts to revise :)
if("" = $mydata->foo) // an error is thrown. If I come back in and
finish the comparison operator (which I needed to know was broken) it
fixes the conditional st
[snip]
if(
($mydata->address != "")
and
($mydata->addresspublic == "yes")
)
{
}
But in other combinations, they work?
if($mydata->address != ""){}
or
if($mydata->addresspublic == "yes"){}
So what new lesson am I to learn now? :)
[/snip]
Always put the value first in case you accidentally try a
> This should be easy, but refuses to work:
> if(
> ($mydata->address != "")
> and
> ($mydata->addresspublic == "yes")
> )
> {
> }
Are you getting any errors? If so, what are they? Also, shouldn't
the code look like this:
if(
($mydata->address != "")
&&
($mydata->addresspublic == "yes")
)
{
}
John Taylor-Johnston wrote:
This should be easy, but refuses to work:
if(
($mydata->address != "")
and
($mydata->addresspublic == "yes")
)
{
}
But in other combinations, they work?
if($mydata->address != ""){}
or
if($mydata->addresspublic == "yes"){}
So what new lesson am I to learn now? :)
4 matches
Mail list logo