# Tidying up this code?

**URL:** <https://forum.kirupa.com/t/tidying-up-this-code/205934>\
**Category:** Uncategorized\
**Created:** [November 3, 2006, 10:04am UTC](https://forum.kirupa.com/t/tidying-up-this-code/205934 "2006-11-03T10:04:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![achisholm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/achisholm/32/2607_2.png) [@achisholm](https://forum.kirupa.com/u/achisholm)\
**Post date:** [November 3, 2006, 10:04am UTC](https://forum.kirupa.com/t/tidying-up-this-code/205934/1 "2006-11-03T10:04:00Z")

</div>

[SIZE=1]hi, i would like to tidy this code up, it wasn’t written by me. I would like to use variable names but not sure how to make the changes, please have a look and make any suggestions…

[/SIZE]

```auto
if (((this._parent._parent.tank.water._y - this._parent._parent.tank.oil._y) + this._parent._parent.tank.oil._height) < 43) {
    this._parent._parent.tank.water._height = this._parent._parent.tank.water._height + .3;
    this._parent._parent.tank.oil._height = this._parent._parent.tank.oil._height + .2;
    this._parent._parent.tank.oil._y = this._parent._parent.tank.oil._y - .2;
}

```
