# Easier way to do this?

**URL:** <https://forum.kirupa.com/t/easier-way-to-do-this/197581>\
**Category:** flash\
**Created:** [August 17, 2006, 3:46pm UTC](https://forum.kirupa.com/t/easier-way-to-do-this/197581 "2006-08-17T15:46:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![p\_due18](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/p_due18/32/347_2.png) [@p\_due18](https://forum.kirupa.com/u/p_due18)\
**Post date:** [August 17, 2006, 3:46pm UTC](https://forum.kirupa.com/t/easier-way-to-do-this/197581/1 "2006-08-17T15:46:56Z")

</div>

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

```auto
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.
