# IF /ELSE statements

**URL:** <https://forum.kirupa.com/t/if-else-statements/311751>\
**Category:** Uncategorized\
**Created:** [July 15, 2010, 12:43pm UTC](https://forum.kirupa.com/t/if-else-statements/311751 "2010-07-15T12:43:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somdow](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@somdow](https://forum.kirupa.com/u/somdow)\
**Post date:** [July 15, 2010, 12:43pm UTC](https://forum.kirupa.com/t/if-else-statements/311751/1 "2010-07-15T12:43:01Z")

</div>

sup all…ima brand spakin NOob…trying to forget the little i knew b4(years ago) and learning as3…going from as1 to 3…i feel restarted lol its liek as i read these tutorials and whatnot, my brain flashes back to when i knew something and its way diff now…sigh anyways(bare with me lol )

ok so as im looking around for if/else statememnt tuts… eventually i wanna apply em to smooth out my transitions to external swfs (most tuts i find are in as2)

so…im testing to see if i can get results and i used this (and tried diff ways and no go)er.to be clear the butt works fine, the if statement does not

```auto
import flash.events.MouseEvent;

stop();

playBtn.addEventListener(MouseEvent.CLICK,pbtn);
function pbtn(Event:MouseEvent):void
{
	play();
	trace("hmm");
	if(trace("hmm") == true) {trace("itsWorrkkiinggg")}
}

```

```auto

import flash.events.MouseEvent;

stop();

playBtn.addEventListener(MouseEvent.CLICK,pbtn);
function pbtn(Event:MouseEvent):void
{
	play();
	trace("hmm");
	}

if (trace("hmm") == true) {trace("itsWorrkkiinggg")
}

```

i dunno what im doing lol.
