How can I do to send an empty var if there is nothing ? I always get
³reliure=undefined² and I need an empty var
Thank you very much
var reliure_var;
if (_global.pie_glo !== || _global.pie_glo !== undefined) {
reliure_var = reliure=+_global.pie_glo;
var_glo.text = reliure_var;
} else {
You have an incorrect not equal: !==
There's just one equal sign: !=
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription
You have an incorrect not equal: !==
There's just one equal sign: !=
!== strict inequality operator
expression1 !== expression2
Tests for the exact opposite of the strict equality (===) operator. The
strict inequality operator performs the same as the inequality operator
except that
!== is strict inequality, it tests for the exact opposite of the strict
equality (===) operator.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Mennenoh
Sent: 14 November 2006 16:52
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Undefined
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
!== is strict inequality, it tests for the exact opposite of the strict
equality (===) operator.
My bad... I guess I never use the strict operators... Sorry.
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
'undefined' is not a string. Try:
var reliure_var;
if ( _global.pie_glo _global.pie_glo != ) {
reliure_var = reliure=+_global.pie_glo;
var_glo.text = reliure_var;
} else {
reliure_var = ³²;
var_glo.text = reliure_var;
}
On 11/14/06, Laurent CUCHET [EMAIL PROTECTED] wrote:
How can I
7 matches
Mail list logo