# Help!

**URL:** <https://forum.kirupa.com/t/help/188223>\
**Category:** Uncategorized\
**Created:** [May 5, 2006, 2:13pm UTC](https://forum.kirupa.com/t/help/188223 "2006-05-05T14:13:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SelectionTool](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@SelectionTool](https://forum.kirupa.com/u/SelectionTool)\
**Post date:** [May 5, 2006, 2:13pm UTC](https://forum.kirupa.com/t/help/188223/1 "2006-05-05T14:13:14Z")

</div>

this is probably a silly question but why does the following work

b\_mc.onRelease = function() {  
numb–;  
m\_mc.p\_mc.loadMovie(pics[numb]);

if (numb\<=0) {  
numb = 5;  
}  
};

and the following doesn’t

b\_mc.onRelease = function() {  
if (numb\<=0) {  
numb = 5;  
}

numb–;  
m\_mc.p\_mc.loadMovie(pics[numb]);  
};

why is it that the condition works after the actoins have been peformed and not before.Still not found out why?
