How to check the "can't touch it" variable for emptiness in Flash programming language?

  • Thread starter Thread starter Neo
  • Start date Start date
N

Neo

Guest
I've loaded XML data (xml: p1="Window" v1="") into Flash into the 2 variables below:
- p1,
- v1,

I can't check them for emptiness.

I viewed them in Flash with trace(p1) and trace(v1).

p1 has a value, and v1 too, so every time I try to make some if statement, it's completely a mistake:

if (v1 != null) do
if (v1 <> null) do

if (v1 != undefined) do
if (v1 <> undefined) do

Tried almost every combination. In actionscript for Flash any variable can be Number or String. Tried even to change v1 to the Number with Number(v1) function. No success.

The key is, I would like to make an "if" statement to leave those variables that aren't empty.

I don't even have the mood to drink coffee I'm stuck, like no-leg kitten in the doghouse.

Just can't touch it ;)
 
Back
Top