If statements not working?

void Update () {

		object1 = GameObject.Find ("HealthBar");
		health = object1.transform.localScale.x;


		if (health < 2) {
			goblinDead == true;

		}

		if (health > 2) {
			goblinDead == false;

		}

		if (goblinDead == true) {
			anim.Play("dead", -1, 0f);

		}

	}
}

It is giving me the error - “Only assignment, call, increment, decrement, and new object expressions can be used as a statement.”

Not sure what this means and I don’t know how to make my script work. (And yes I have public floats for goblinDead, health and object1) Help?!

@Ahndrakhul I think this worked because it is starting my death animation when the health is less than 2, but it keeps trying to play it every frame since every time it updates, it reads that health is less than 2. How do I make it so that it does not restart the animation every frame?