# HELP: Little help on "if then" statement

**URL:** <https://forum.kirupa.com/t/help-little-help-on-if-then-statement/123077>\
**Category:** Uncategorized\
**Created:** [September 20, 2004, 9:38am UTC](https://forum.kirupa.com/t/help-little-help-on-if-then-statement/123077 "2004-09-20T09:38:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BUroKHUli](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/burokhuli/32/190_2.png) [@BUroKHUli](https://forum.kirupa.com/u/BUroKHUli)\
**Post date:** [September 20, 2004, 9:38am UTC](https://forum.kirupa.com/t/help-little-help-on-if-then-statement/123077/1 "2004-09-20T09:38:51Z")

</div>

Hello again,

Supposing you have an movieclip nested on your main stage and you want that clip to move to a particular frame when a button is clicked, and if it has already moved to that specified frame, it will just PAUSE.

I was thinking of this:

* * *

if myClip = frame 5  
then gotoAndPlay(“label”);  
else  
gotoAndStop(currentFrame);

* * *

I tried to make the script but I get errors :). I’ve been looking for a TUT here at Kirupa but didn’t found one so far.

Thanks
