# If-else - question

**URL:** https://forum.kirupa.com/t/if-else-question/17887
**Category:** Uncategorized
**Created:** [April 10, 2003, 12:29pm UTC](https://forum.kirupa.com/t/if-else-question/17887 "2003-04-10T12:29:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fishtank](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fishtank](https://forum.kirupa.com/u/fishtank)
#### Post date: [April 10, 2003, 12:29pm UTC](https://forum.kirupa.com/t/if-else-question/17887/1 "2003-04-10T12:29:31Z")

</div>

i want to do the following:

ive got the input-textfields with the variables “name”, “email” and “website” (all without quotations) and a button.

i want flash to look if one or two or all of them are empty when the button is released and if so, go to the next frame. if they arent empty, go to the previous frame. i only know how to do that with one textfield so plz help me …  
:-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 10, 2003, 2:30pm UTC](https://forum.kirupa.com/t/if-else-question/17887/2 "2003-04-10T14:30:42Z")

</div>

well i know the && thing evaluates one then the other and stuff…i’m not actually familiar with this but you could look it up in the flash dictionary for an explanation of what it does. It might be what you want but i’m really not sure :-/

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 10, 2003, 5:19pm UTC](https://forum.kirupa.com/t/if-else-question/17887/3 "2003-04-10T17:19:39Z")

</div>

Put this code on your submit button below your name, email and website fields:

```auto
on (release) {
	if (_root.name != "" && _root.email != "" && _root.website != "") {
		prevFrame();
	} else {
		nextFrame();
	}
}

```
