Expression must only be executed for their side-effects??

I tried to do some little effects when player hits an object. But it happened some error:
Expression in statements must only be executed for their side-effects.

This is my whole script:

var EffectGUITexture : GUITexture;

function OnTriggerEnter () {
    if(gameObject.tag == "item"){
		EffectGUITexture.transform.localScale.x==-0.05;
	}
}

I’ve searched about the same error in the community, but I still have no idea with solving my problem…
Anyone can help? :cry:
I always got this error and dont know why it happened…

you may have only meant to use = not ==

Currently your expression

EffectGUITexture.transform.localScale.x==-0.05;

Doesn’t actually do anything.

Thanks! It solved!
But I still have question…How do I know I have to use = or ==?
I learned about scripting myself so still lots of things couldn’t understand.

a==b; is asking. (does a=b) it returns true or false.
a==b; doesn’t change a or b

a=b; is telling. (set a to b) it returns b;
a=b; changes a.

Also
a=b=c; will set a and b to c;

Thanks gobbledeegeek!
I am taking some notes now.