# Help with "if else"

**URL:** https://forum.kirupa.com/t/help-with-if-else/49422
**Category:** Uncategorized
**Created:** [April 22, 2004, 4:00pm UTC](https://forum.kirupa.com/t/help-with-if-else/49422 "2004-04-22T16:00:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)
#### Post date: [April 22, 2004, 4:00pm UTC](https://forum.kirupa.com/t/help-with-if-else/49422/1 "2004-04-22T16:00:18Z")

</div>

okay, i’m trying to get the selection on one mc and change frames on another accordingly…

do i need an “if else” statement?

here’s what i got (obviously wrong):

```auto
onClipEvent (load){if(_root.skinbuttons_mc.current_selection == "skyy"){ gotoAndStop("skyy");
if(_root.skinbuttons_mc.current_selection == "graymatter"){ gotoAndStop("graymatter");
if(_root.skinbuttons_mc.current_selection == "blackmagik"){ gotoAndStop("blackmagik");
if(_root.skinbuttons_mc.current_selection == "stained"){ gotoAndStop("skyy");
} 

```

also do i have to use \_root.mcname.gotoAndStop… full path if i’m placing this code on the mc or will code placed on an mc relate to that mc with the goto functions?

thanks for any help!
