Return booleans from functions
ActionScript3When returning a Boolean you can do the validation inside the return statement. Usually I would do something like this: Instead, you could shorten it down to only one line of code like this: doTest will return true if someValue is greater than otherValue. Pretty neat huh?