Input Text

Ok basically I want the player to type a number into an inoput text field and that number will become a variable. I then want to use that number to add onto another variable number. Problem is that it doesn’t give a number from the input text but code to display the number. e.g.
[AS]<TEXTFORMAT LEADING=“2”><P ALIGN=“CENTER”><FONT FACE="_sans" SIZE=“18” COLOR="#000000" LETTERSPACING=“0” KERNING=“0”>11</FONT></P></TEXTFORMAT>[/AS]
Which writes the number 11. I just want it to equal 11, not the above.

Any way to do this?