# Check user answer by checking input text box

**URL:** <https://forum.kirupa.com/t/check-user-answer-by-checking-input-text-box/58796>\
**Category:** Uncategorized\
**Created:** [July 26, 2004, 9:26am UTC](https://forum.kirupa.com/t/check-user-answer-by-checking-input-text-box/58796 "2004-07-26T09:26:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karena](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@karena](https://forum.kirupa.com/u/karena)\
**Post date:** [July 26, 2004, 9:26am UTC](https://forum.kirupa.com/t/check-user-answer-by-checking-input-text-box/58796/1 "2004-07-26T09:26:21Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 27, 2004, 11:59am UTC](https://forum.kirupa.com/t/check-user-answer-by-checking-input-text-box/58796/2 "2004-07-27T11:59:01Z")

</div>

Let’s say your input box has a Var: inputText

Put this code on a button:

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

```
