How do I make buttons that turn into a text field?

How do I make buttons that turn into a text field?

I want it so the user sees buttons on the screen and when clicked they turn into a text field that has several lines of text. With the option of closing the field which then reverts back to a button ready to be clicked again.

Please help this unity nub!

private var foldOut = false;

function OnGUI(){
    if(!foldOut){
        if(GUI.Button(blah,blah,blah,blah,blah)){ //Press and it will "fold out"
            foldOut = true;
        }
    }else
        GUI.TextField(Blah,blah,blah,blah,blah);
        if(GUI.Button(blah,blah,blah,blah,blah)){ // Press again and it will "fold in"
        foldOut = false;
    }
}

Simple example for you, nothing special. Hopefully you will get the idea.

That doesn’t work Lightning it says blah is an unknown identifier.