# Forgot basic If statement

**URL:** <https://forum.kirupa.com/t/forgot-basic-if-statement/259709>\
**Category:** Uncategorized\
**Created:** [May 8, 2008, 1:16am UTC](https://forum.kirupa.com/t/forgot-basic-if-statement/259709 "2008-05-08T01:16:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://forum.kirupa.com/u/Dave)\
**Post date:** [May 8, 2008, 1:16am UTC](https://forum.kirupa.com/t/forgot-basic-if-statement/259709/1 "2008-05-08T01:16:11Z")

</div>

Hi guys,

Been a while since i touched actionscript and forgot a simple If statement using \_x.

THis is the code that I have.

```auto
onClipEvent(enterFrame) {
this._x = this._x +.5; 
}

```

Now when this.\_x reaches 400 pixels on the screen, I want it to return back to zero. How do I do that again?

```auto

If (this._x > this._x + 300){
this._x = 0;
}

```

I can’t seem to get it right. Any help will be appreciated, thanks:)
