# If condition without getting the else to function

**URL:** <https://forum.kirupa.com/t/if-condition-without-getting-the-else-to-function/124137>\
**Category:** Uncategorized\
**Created:** [September 30, 2004, 9:38am UTC](https://forum.kirupa.com/t/if-condition-without-getting-the-else-to-function/124137 "2004-09-30T09:38:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clwright\_2000](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@clwright\_2000](https://forum.kirupa.com/u/clwright_2000)\
**Post date:** [September 30, 2004, 9:38am UTC](https://forum.kirupa.com/t/if-condition-without-getting-the-else-to-function/124137/1 "2004-09-30T09:38:32Z")

</div>

:hugegrin: Hi,

Im using the following to display feedback once a check answer button is clicked to see if the correct object out of four has been selected.

It works as far as displaying the tick - once the correct object is selected but im unable to get the cross to display when the wrong choice is made (ie any other object than the correct one).

Would really be greatful if someone could help me out…

* * *

on (release) {

if (\_root.choose1.\_visible == false) {  
if (\_root.choose2.\_visible == true) {  
if (\_root.choose3.\_visible == false) {   
if (\_root.choose4.\_visible == false) {

\_root.tick.\_visible = true;

```
} else if (_root.choose2._visible == false)	{					

```

\_root.cross.\_visible = true;

```
			}
		}
	}
}	

```

}

* * *

Cheers,

Clest
