# If/Else problem :(

**URL:** <https://forum.kirupa.com/t/if-else-problem/126818>\
**Category:** Uncategorized\
**Created:** [October 27, 2004, 3:17pm UTC](https://forum.kirupa.com/t/if-else-problem/126818 "2004-10-27T15:17:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harvard](https://avatars.discourse-cdn.com/v4/letter/h/bcef8e/32.png) [@Harvard](https://forum.kirupa.com/u/Harvard)\
**Post date:** [October 27, 2004, 3:17pm UTC](https://forum.kirupa.com/t/if-else-problem/126818/1 "2004-10-27T15:17:07Z")

</div>

Hello all,

I’m making a site for a friend (therefore learning Flash as I go) and have come to a confusing stop.

I’ve got a slide in contact form which appears when clicking a button.

The button displays the contact form if a textbox displays “false”, but if the textbox displays “true” then it retracts the form.  
I’ve had to use a textbox as a kind of boolean, because Flash seems to think the X position of the form is static … even though it slides from left to right.

Anyway … I’ve setup a ‘if/else’ statement to determin weather or not the menu should slide.

```auto
on(release)
{
	if(_root.contactStat.text = "true")
	{
		_root.contactForm.gotoAndPlay(15);
	}
	else
	{
		_root.contactForm.gotoAndPlay(1);
	}
}

```

Even if the textbox displays “false” the the movie clip plays from Frame15.

How can I get round this ?
