>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.
Just in case André Goliath's case is not completely made:
function compareAnd(checkVar:String):Boolean{
if((checkVar != "") && (checkVar != undefined) && (checkVar !=
null)){
// if all three conditions are true
return true;
}else{
// else at least one of the conditions is not true
return false;
}
}
function compareOr(checkVar:String):Boolean{
if((checkVar != "") || (checkVar != undefined) || (checkVar !=
null)){
// if any one of the three conditions is true
return true;
}else{
// else none of the conditions are true
// Please Note -- at least one of the conditions
// will always be true
return false;
}
}
var testVar = "";
trace("compareAnd '' = "+compareAnd(testVar));// false
trace("compareOr '' = "+compareOr(testVar));// true
var testVar = undefined;
trace("compareAnd undefined = "+compareAnd(testVar));// false
trace("compareOr undefined = "+compareOr(testVar));// true
var testVar = null;
trace("compareAnd null = "+compareAnd(testVar));// false
trace("compareOr null = "+compareOr(testVar));// true
var testVar = "Text";
trace("compareAnd 'Text' = "+compareAnd(testVar));// true
trace("compareOr 'Text' = "+compareOr(testVar));// true
HTH
-Keith
http://home.mn.rr.com/keithreinfeld
_______________________________________________
[email protected]
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