Easier way to do this?

Hi guys, basically is there an easier way to do this?

if((mov1.var == mov2.var) || (mov1.var == mov3.var) || (mov1.var == mov4.var)){
	trace("doh");
}else{
	trace("yay");
}

All this is doing is checking to see whether the movieclips 2,3 and 4 all have the same variable as 1.

I just don’t want loads of code if it can be trimmed and tidied.

Cheers.