On 14/11/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:

var reliure_var;
if (_global.pie_glo !== "" || _global.pie_glo !== "undefined") {
    reliure_var = "&reliure="+_global.pie_glo;
    var_glo.text = reliure_var;
} else {
    reliure_var = ³²;
    var_glo.text = reliure_var;
}

I can see two possible problems here Laurent. Firstly I think you need
to change the || to &&. You are testing whether a value is not one
thing or not another. Because it can't be both of them at once one of
those will always be true, therefore the whole statement will always
be true.

Secondly, you are testing for the string "undefined", whereas you
probably want to be testing against the value undefined itself. (It's
possible that's not the case, I haven't seen the rest of your code.

Hope that helps.

Jake
_______________________________________________
[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

Reply via email to