# Input text displays returns formatting

**URL:** <https://forum.kirupa.com/t/input-text-displays-returns-formatting/314927>\
**Category:** flash\
**Created:** [October 12, 2010, 3:14pm UTC](https://forum.kirupa.com/t/input-text-displays-returns-formatting/314927 "2010-10-12T15:14:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![russrascle](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@russrascle](https://forum.kirupa.com/u/russrascle)\
**Post date:** [October 12, 2010, 3:14pm UTC](https://forum.kirupa.com/t/input-text-displays-returns-formatting/314927/1 "2010-10-12T15:14:57Z")

</div>

Dear All

I have been working on a quiz game. The first questions was a calculation with the correct answer 5 or five. I have created an input text box with a variable ans1. Instance for the input text is Q1Input. I made a button with the following button script:

on (release, keypress “\<Enter\>”) {  
if (ans1 eq “5” or ans1 eq “five”) {  
gotoAndPlay(2);  
} else {  
gotoAndStop(3);  
}  
}

Typing a correct answer gets me to a wrong message (frame 3) not correct (frame 2). When I trace(ans1) it seems that the input text box is passing teh formatting data with the value thus giveing me WRONG.

Any ideas??:deranged:

russrascle
