300 < 59 evaluates to true! :º)

What am I doing wrong???


on (release) {	
	if (number >= go) 
                {_root.changePhoto (ir - (this.pIndex + 1))}
	else {trace ("Not")}
	    }

so, this button it´s like a “go-to”. The user introduces the “number” in a text box an then pushes the button.

The text box only allows numbers, but I want it to skip if the number is 0 (that`s the first problen yet to be solved).
But the real problem is that sometimes when I introduce a number higer than the var “number” it goes into the if… (like the title zes… 300<59 evaluates to true).