If statement problem

OK, i have a text field and i have some script that detects what the text is then performs a function. Like this:

if (textfield == “some words”) {
answer = " ‘some words’ found" ;
}

Which is all fine, but i am going to need to make alot of these… so for each word typed in the text field a different function is performed. But i also want to write a statement that checks to see if the textfield is blank “” or if none of the words i have defined are in the text field to perform a standard function. For example: answer = “Not found”

Does anyone know how to format this? If so i would be EXTREMELY grateful.

Iain