If/else rotation?

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?