Actionscript 2

Cleaning Up My if() Statements

This isn't AS3 specific, but I have recently started using one line if() statements when possible. They can be slightly confusing the first few times you encounter them, but once you get used to it they really help clean things up. So anyways, instead of:

if(something) {

You can do this:

if(something) thenDoThis();

I could be mistreated.