Evaluating a text input field on button click

can anyone tell me why the following code wouldn’t be working? this is on a button, so that the input would be evaluated and a certain msg would appear when the button is clicked.


on (release) {
	if ((inputName = "this") || (inputName = "that")) {
		msg = "msg1";
	} else {
		msg = "msg2";
	}
}

help?