# Why does my IF not recognise my condition?

**URL:** <https://forum.kirupa.com/t/why-does-my-if-not-recognise-my-condition/215509>\
**Category:** flash\
**Created:** [February 7, 2007, 8:32pm UTC](https://forum.kirupa.com/t/why-does-my-if-not-recognise-my-condition/215509 "2007-02-07T20:32:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [February 7, 2007, 8:32pm UTC](https://forum.kirupa.com/t/why-does-my-if-not-recognise-my-condition/215509/1 "2007-02-07T20:32:34Z")

</div>

Hello there,

For some reason, the condition in my if statement causes my btn\_MC to align to co-ords 0,0

It sits at 240,240 before the movie is previewed, then appears at 0,0 when the movie starts.

if ([button.\_x = 0 , button.\_y = 0])  
{  
button.onRelease = function ()  
{

Why oh Why, because if x does = 0 then I want my MC to move elsewhere onRelease…

Could someone please help my daftness!
