# If !not else

**URL:** <https://forum.kirupa.com/t/if-not-else/145833>\
**Category:** Uncategorized\
**Created:** [April 26, 2005, 8:43am UTC](https://forum.kirupa.com/t/if-not-else/145833 "2005-04-26T08:43:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voursez](https://avatars.discourse-cdn.com/v4/letter/v/b5ac83/32.png) [@Voursez](https://forum.kirupa.com/u/Voursez)\
**Post date:** [April 26, 2005, 8:43am UTC](https://forum.kirupa.com/t/if-not-else/145833/1 "2005-04-26T08:43:49Z")

</div>

Have a little problem here. Im making some kinda drop-down menu, but im having troubles with the if/else command. Think the problem is in the != thingy. Scaler and masker’s initial value is 16.9:

```auto
on (press) {
	if (_root.scaler._height != 16.9) { // If "scaler" height is everything but 16.9
		_root.scaler.scale(16.9); // Do this
		_root.masker.scale(16.9);
	} else { // If "scaler" height was 16.9
		loadText = new LoadVars(); // Do this
		loadText.load("http://daniel2.wi.ots.dk/egen_hp/php/read_dir.php");
		loadText.onLoad = function() {
			_parent.textbox.htmlText = this.recieve;
			height = _root.textbox._height+_root.textbox._y-_root.scaler._y+4;
			_root.scaler.scale(height);
			_root.masker.scale(height);
		};
	}
}

```

Any help appreciated
