# AS If, else Help

**URL:** <https://forum.kirupa.com/t/as-if-else-help/93170>\
**Category:** Uncategorized\
**Created:** [October 26, 2003, 11:31pm UTC](https://forum.kirupa.com/t/as-if-else-help/93170 "2003-10-26T23:31:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![macmar](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@macmar](https://forum.kirupa.com/u/macmar)\
**Post date:** [October 26, 2003, 11:31pm UTC](https://forum.kirupa.com/t/as-if-else-help/93170/1 "2003-10-26T23:31:57Z")

</div>

geese, I just scripted a 5 MC nested deep deal MYSELF! I’m making a major break through in AS :\<))). One glitch I have to fix:  
I have a button with AS\>  
on (release) {  
gotoAndStop(“infoscroll”, 1);  
}

Is there a way to add some kind of if condition to this button so that IF the music IS OFF (it may be on or off) I can loadMovie again?  
e.g., unloadMovieNum(140); —\>User could choose to click the above button and leave with the movie off here\<— loadMovieNum(“tab.swf”, 140);

LIKE, if it’s unloaded, load it else don’t load it kinda thingy??
