# Easy prob, (for a guru maybe) if xPos

**URL:** <https://forum.kirupa.com/t/easy-prob-for-a-guru-maybe-if-xpos/140484>\
**Category:** Uncategorized\
**Created:** [March 11, 2005, 10:09am UTC](https://forum.kirupa.com/t/easy-prob-for-a-guru-maybe-if-xpos/140484 "2005-03-11T10:09:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [March 11, 2005, 10:09am UTC](https://forum.kirupa.com/t/easy-prob-for-a-guru-maybe-if-xpos/140484/1 "2005-03-11T10:09:16Z")

</div>

hi Iv got this if condition problem, here I go  
Iv got this button that sets \_xdest = 450.  
what i am trying to do is set an If move.\_xPos\>= 450 then a function is activated  
like this

```
move.onEnterFrame = function() {
    if (_root.move._xPos&gt;= 450) {
        out();
    }
};

```

heres the file  
thanks in advance for any suggestions.
