Well I have almost finished my first really not too easy program and I'm stuck with one thing:

else if(yesorno=n)
{

}

I'd like to put between the brackets a command that closes the window, can anyone help me?
Thanks in advance.