# Check dis (Unexplainable)

**URL:** <https://forum.kirupa.com/t/check-dis-unexplainable/29300>\
**Category:** flash\
**Created:** [August 25, 2003, 2:59pm UTC](https://forum.kirupa.com/t/check-dis-unexplainable/29300 "2003-08-25T14:59:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigitalPimp](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@DigitalPimp](https://forum.kirupa.com/u/DigitalPimp)\
**Post date:** [August 25, 2003, 2:59pm UTC](https://forum.kirupa.com/t/check-dis-unexplainable/29300/1 "2003-08-25T14:59:25Z")

</div>

Aight, I’m picking up an ASP Post variable and then checking if there is a value to it and if there is then I am tacking on a word to the front of the string and then using it as an object name in my FLA.

Now the problem, on the root I am doing an onEnterFrame = function() and then just seeing if there is a value in the post variable and if there is then I am just having it trace out and then I convert it to a \_global. Here is the code:

```auto

onEnterFrame = function() {
	_global.searchStrPV = SearchStr;
	//Grade = "0";
	if (Grade != "") {
		trace(Grade);
		_global.gradePV = "Grade" +Grade;
	}

}

```

Now, when I run that it goes into the if statement and then traces undefined which makes no sense because if it was undefined it wouldn’t go into the if statement. Somebody please help me before I beat my brains out on my desk. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2003, 3:03pm UTC](https://forum.kirupa.com/t/check-dis-unexplainable/29300/2 "2003-08-25T15:03:22Z")

</div>

“” != undefined

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2003, 3:04pm UTC](https://forum.kirupa.com/t/check-dis-unexplainable/29300/3 "2003-08-25T15:04:03Z")

</div>

But Sen, shouldn’t that also pick up undefineds? I believe I’ve done that in the past.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2003, 3:08pm UTC](https://forum.kirupa.com/t/check-dis-unexplainable/29300/4 "2003-08-25T15:08:36Z")

</div>

what if (Grade != “”) { is doing is checking to see if Grade is equal to anything else in the world other than “”. If Grade is not “” then it will get traced. Now I dont know what you predefined Grade as being, but I assume it to be “” ? If not, then that trace will run.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2003, 3:12pm UTC](https://forum.kirupa.com/t/check-dis-unexplainable/29300/5 "2003-08-25T15:12:16Z")

</div>

I didn’t predefine it as anything. Maybe it is just the crack rock that I’m smokin’ but I could had sworn that I’ve done this before and it alway worked.
