PDA

View Full Version : check user answer by checking input text box



karena
July 26th, 2004, 05:26 AM
how do i check the answer that enter by user....
the marks is given by checking whether they user key in the keywords or not...
i m thinking of using string method...but i not able to do it...
pls help....

ViNc3
July 27th, 2004, 07:59 AM
Let's say your input box has a Var: inputText

Put this code on a button:


on (release) {
if (inputText == "keyword" or inputText == "Keyword") {
//actions here (if equal to your keyword)
} else {
//other actions (if not equal to your keyword)
}
}