# If/else rotation?

**URL:** <https://forum.kirupa.com/t/if-else-rotation/284762>\
**Category:** Uncategorized\
**Created:** [March 23, 2009, 1:01pm UTC](https://forum.kirupa.com/t/if-else-rotation/284762 "2009-03-23T13:01:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![annonse](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@annonse](https://forum.kirupa.com/u/annonse)\
**Post date:** [March 23, 2009, 1:01pm UTC](https://forum.kirupa.com/t/if-else-rotation/284762/1 "2009-03-23T13:01:23Z")

</div>

Hi all!  
I have to movieclips which rotates after a value which is feeded in using xml.  
Is there a way to make my.movieClip.gotoAndStop(2); based on the rotation of another movieclip?  
Something like this:

if ([COLOR=Magenta]rotation of MC1[/COLOR] \>= [COLOR=Magenta]rotation of MC2[/COLOR]){  
my.movieClip.gotoAndStop(2);  
} else {  
my.movieClip.gotoAndStop(3);  
}

Now, I don’t know how to code this correctly, therefore I’ve highlighted my problem in pink.  
Anyone?
