Global variable?

I’m trying to define my code somewhat but I’m not very successful. I was hoping that someone could give me a hand?

Have a few input boxes where users have to add text to answer question. In my code so far, they have to click a button for each question to see if they are correct

n (release) {
	_root.comment1 = "";
	if (_root.input1 == "her") {
		_root.comment1 = "Correct";
	} else {
		_root.comment1 = "Wrong";
	}

and then the same code over and over again…does anyone know a way I can create a handy little function to solve this problem?

Any help would be appreciated! :smirk:

Y