Quest Script Help

why dosent it work?, it is supposed to change the text when the game object does not exist (elfboss), but when i kill it it says the same :confused:

var target: Transform;
var healthtext : GUIText;

function Update () 
{
    if(GameObject.Find("elfboss") != null)
    {
        healthtext.text = "Current Quest:" + "" + " Kill the Elf Boss ";
    }
    else
    {
        healthtext.text = "Quest" + "" + " Completed";
    }
}

Donโ€™t use !=, ==, or null at all. Just use

if(GameObject.Find("elfboss"))
{
    //Code Here
}

else
{
    //Code Here
}

Try to use != true, or == false, instead of null.