Turning a string into code

Hi,

I’m trying to create a series of scripts that will create some custom event listeners.

I have three movie clips on my stage. One is a movieclip who’s sole function is to hold array’s and the event listeners. A second which moves around the screen. And a third that is motionless.

The problem is that the argument I want to test (which activates the custom event) is held within a string.

What I want to know is, how do you test to see if the string argument is true?

Is it something similar to this:

var myCode:String="1<0";

if(myCode){
	trace('one is smaller than 0'); //Strangely apparently one IS smaller than 0!!!
}

I think I’m going about this in the wrong manner, however this is the only way I can think of this working… (since I need to be able to dynamically create these events)

Thanks for any help,
Pokenerd