# How else could I write this

**URL:** https://forum.kirupa.com/t/how-else-could-i-write-this/307177
**Category:** flash
**Created:** [March 30, 2010, 5:37am UTC](https://forum.kirupa.com/t/how-else-could-i-write-this/307177 "2010-03-30T05:37:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![smeared](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@smeared](https://forum.kirupa.com/u/smeared)
#### Post date: [March 30, 2010, 5:37am UTC](https://forum.kirupa.com/t/how-else-could-i-write-this/307177/1 "2010-03-30T05:37:22Z")

</div>

I know there is a better way but when I tried the OR operator it didn’t work. thanks guys.

I want those two to not do something, but

```auto
if(e.currentTarget.name == "enroll"){
						
					}else if( e.currentTarget.name == "free") {
						
					}else{
						//code goes here, because I want all the other ones to do something
					}

```
