# (mx 6)if statement for a undefined variable

**URL:** <https://forum.kirupa.com/t/mx-6-if-statement-for-a-undefined-variable/93936>\
**Category:** Uncategorized\
**Created:** [November 6, 2003, 2:55pm UTC](https://forum.kirupa.com/t/mx-6-if-statement-for-a-undefined-variable/93936 "2003-11-06T14:55:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![t8024328](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@t8024328](https://forum.kirupa.com/u/t8024328)\
**Post date:** [November 6, 2003, 2:55pm UTC](https://forum.kirupa.com/t/mx-6-if-statement-for-a-undefined-variable/93936/1 "2003-11-06T14:55:57Z")

</div>

How can I test a undefined variablewith an if statement.

all a this did not work and I don’t want to define a value for this variable.  
name of the variable x.

if ((x == “”) || (x == " ") (x == Nan))  
{  
trace(“here”);  
}  
Someone could find me the correct if statemtn to check an undefined variable on action script 1, mx 6…develloped with MX2004Pro…thanks
