var isTrue:Boolean = true;
isTrue = !isTrue;
trace(isTrue); // prints "false"
isTrue = !isTrue;
trace(isTrue); // prints "true"
Simplicity is your friend.
A collection of handy code snippets in the languages that I use on a daily basis.
var isTrue:Boolean = true;
isTrue = !isTrue;
trace(isTrue); // prints "false"
isTrue = !isTrue;
trace(isTrue); // prints "true"
var isEmptyNode:Boolean = false;
if( String( node["myNodeName"].text() ) == "" )
{
isEmptyNode = true;
}