# Help with if/then actions

**URL:** <https://forum.kirupa.com/t/help-with-if-then-actions/20160>\
**Category:** flash\
**Created:** [May 6, 2003, 12:09am UTC](https://forum.kirupa.com/t/help-with-if-then-actions/20160 "2003-05-06T00:09:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointlessthings](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@pointlessthings](https://forum.kirupa.com/u/pointlessthings)\
**Post date:** [May 6, 2003, 12:09am UTC](https://forum.kirupa.com/t/help-with-if-then-actions/20160/1 "2003-05-06T00:09:32Z")

</div>

Hey everyone,

I need some help with my if/then actions.

I am wanting to be able to use the if/then actions to do something like this:

> if [movie clip] Content1 [is at frame label] remove, goto frame 5  
> So basically, if the movie clip titled ‘Content1’ is at the frame labeled ‘remove’, it will goto frame 5 of the current scene.

What would the actionscript be for this?

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 12:52am UTC](https://forum.kirupa.com/t/help-with-if-then-actions/20160/2 "2003-05-06T00:52:51Z")

</div>

there’s no way you can get a frame label, you’ll have to use the \_currentframe (returns the frame number). :-\

```auto
if (myMovieClip._currentframe == 29) gotoAndPlay(5);

```

or you could set a variable in the MovieClip, let’s call it \_framelabel. 🙂

at frame 29 (or whatever frame), you’d have this script:

```auto
_framelabel = "remove";

```

then you can use:

```auto
if (myMovieClip._framelabel == "remove") gotoAndPlay(5);

```

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 10:36pm UTC](https://forum.kirupa.com/t/help-with-if-then-actions/20160/3 "2003-05-06T22:36:11Z")

</div>

Wow, that was really helpful…Thanks a ton 🙂

-Nick

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 10:40pm UTC](https://forum.kirupa.com/t/help-with-if-then-actions/20160/4 "2003-05-06T22:40:07Z")

</div>

no problem. 😉
