André Goliath wrote:
Well I am testing for any of them, not all of them.

Why would you want to do that?
do you want results such as

myHtml += "<a href=\"\" target=\"_blank\"></a><br>";

in case myLinker1 is ""

or

myHtml += "<a href=\"undefined\" target=\"_blank\">undefined</a><br>";
in case myLinker1 is undefined?


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dnk
Sent: Tuesday, August 15, 2006 7:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] [:::] appending html to a var for displaynot
working and code not runnign as expected.

André Goliath wrote:
if ((myLinker1 != "") || (myLinker1 != undefined) || (myLinker1 != null))
{
myHtml += "<a href=\"" + myLinker1 + "\" target=\"_blank\">" + myLinker1 + "</a><br>";
}

but then the trace of my results does not even work (it includes the records that are empty).
<<

Shouldn´t it be
if ((myLinker1 != "") && (myLinker1 != undefined) && (myLinker1 != null))

?

but if you look I am testing if they are NOT equal to those things.. as in if the results are not null/undefined or ""... then write out the links with the returned data. So then they would write proper html links.


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to