# If else problem

**URL:** <https://forum.kirupa.com/t/if-else-problem/87151>\
**Category:** flash\
**Created:** [April 18, 2005, 8:53pm UTC](https://forum.kirupa.com/t/if-else-problem/87151 "2005-04-18T20:53:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_CrabApple](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Mr\_CrabApple](https://forum.kirupa.com/u/Mr_CrabApple)\
**Post date:** [April 18, 2005, 8:53pm UTC](https://forum.kirupa.com/t/if-else-problem/87151/1 "2005-04-18T20:53:48Z")

</div>

I’m designing an interface for a trouble shooting program. The basic premise is the caller calls in and the operator walks the caller through a series of yes or no questions. Each yes or no question will take the caller to another question or a solution depending on the answer. I am using two pre packaged Flash UI radio components and a simple ‘Next’ button I made myself. My actionscripting abilities are rather primitive and my script for the button is as follows:

```auto

on (release) {
if (yes) {
gotoAndStop(5);
} else if (no) {
gotoAndStop(1);
}
}

```

My basic problem is that I cannot get the script to notice the if else functions. It is automatically going to frame five on every click.

I have enclosed the .fla file (flash mx). It is in spanish, which I don’t speak very well, so please no diction/grammar comments. :}

Any insight would be greatly appreciated.
