# If statements, again not making sense?

**URL:** <https://forum.kirupa.com/t/if-statements-again-not-making-sense/75575>\
**Category:** flash\
**Created:** [January 10, 2005, 1:32pm UTC](https://forum.kirupa.com/t/if-statements-again-not-making-sense/75575 "2005-01-10T13:32:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darthmahon](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@darthmahon](https://forum.kirupa.com/u/darthmahon)\
**Post date:** [January 10, 2005, 1:32pm UTC](https://forum.kirupa.com/t/if-statements-again-not-making-sense/75575/1 "2005-01-10T13:32:58Z")

</div>

Hi,

Using the following to move one item to a certain place once the first item has reached there:

[AS]  
if (mc\_skip.\_y - 1 \< 20 && mc\_skip.\_y + 1 \> 20) {  
mc\_skip.\_y = 20;  
mc\_skip\_b.\_y = 20;  
//the movieclip is within 1 point of where you want it  
}

this.onEnterFrame = function(){  
trace(“Button:” + mc\_skip\_b.\_y);  
trace(“Text:” + mc\_skip.\_y);  
}  
[/AS]

Ok, so really, why does the mc\_skip\_b not move to 20 \_y? I am tracing it, and it’s definately going to 20 \_y so I don’t get it?

Cheers,  
Chris
