GUI question (update/change text)

I have a text displaying via GUI text that says get to the exit. I have a trigger on the exit that updates by adding a point to check for success condition. When that happens I want the displayed text to change to:

"You made it! Press enter to restart or escape to quit"

"that updates by adding a point to check for success condition"

I am not quite sure what that means but I'll assume that you have a number you increase.

// Set guiText to be a public member and set it up through the editor.
var guiText : GUIText;

// Then in your number altering code (I guess in your trigger) you could do:
if (thatNumber == successNumber)
{
    guiText.text = "You made it! Press enter to restart or escape to quit";
}