E: me@sabisin.com | T: +49.151.68651209

Actionscript 3 : Toggling a Boolean

No need of conditional statement to figure out which direction to toggle a Boolean value.

var iStRue:Boolean;
iStRue = !iStRue;
trace(iStRue);      //true
iStRue = !iStRue;
trace(iStRue);      //false

Leave a Reply