# If/else doubt - How to say it in script

**URL:** <https://forum.kirupa.com/t/if-else-doubt-how-to-say-it-in-script/170765>\
**Category:** Uncategorized\
**Created:** [November 29, 2005, 12:11pm UTC](https://forum.kirupa.com/t/if-else-doubt-how-to-say-it-in-script/170765 "2005-11-29T12:11:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parchow](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@parchow](https://forum.kirupa.com/u/parchow)\
**Post date:** [November 29, 2005, 12:11pm UTC](https://forum.kirupa.com/t/if-else-doubt-how-to-say-it-in-script/170765/1 "2005-11-29T12:11:58Z")

</div>

I´ve got a button telling a movieclip to gotoAndPlay a specific frame.

```auto
 
on (rollOver) {
 tellTarget ("movieclip") {
  gotoAndPlay ("specificframe")
 }
}

```

Trouble is that I want the movieclip do play this specific frame only if the MC is courently in frame 4.

something like:  
if “movieclip” is in frame 4 gotoAndPlay (“specific frame”)  
else do nothing

How do I put this in code?

Could anyone help me please i’d be much obliged.

cheers, Marc
