# If statement help plz

**URL:** <https://forum.kirupa.com/t/if-statement-help-plz/143444>\
**Category:** Uncategorized\
**Created:** [April 6, 2005, 12:00am UTC](https://forum.kirupa.com/t/if-statement-help-plz/143444 "2005-04-06T00:00:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_East\_High](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imported_east_high/32/1331_2.png) [@imported\_East\_High](https://forum.kirupa.com/u/imported_East_High)\
**Post date:** [April 6, 2005, 12:00am UTC](https://forum.kirupa.com/t/if-statement-help-plz/143444/1 "2005-04-06T00:00:20Z")

</div>

I’m using AS to control movement and I would like for it to load an external .swf once the object has reached its destination, but I’m having trouble with the if statement.  
Here’s the movement code:

```auto
MovieClip.prototype.ease = function(width, height) {
	this.onEnterFrame = function() {
		this._width = width-(width-this._width)/3;
		this._height = height-(height-this._height)/1.5;
		if (this._width>width-1 && this._width<width+1 && this._height>height-1 && this._height<height+1) {
			this._width = width;
			this._height = height;
			delete this.onEnterFrame;
		}
	};
};

```

And here’s my controling function:

```auto
_root.history_btn.onRelease = function() {	
	_root.mask_mc.ease(914.5, 20);
	if (mask_mc._height ==height) {
		loadMovieNum("history.swf", 1);
		trace("wft");
	}
};

```

I can only get to work with the “\>” operator, but that’s no good. Can anyone help me?
