If (myVar) is a bool, then it will become apparent if it is true, and will not work if not. If bool has never been initialized (for example, var myBool:Boolean; instead of var myBool:Boolean = true ), then by default it is erroneous. The same concept applies to embedded objects such as Number, int, etc. To a large extent, for everything else, it will pass only as true if the object was initialized through the constructor of the object or through a direct assignment, for example:
var a:MovieClip = new MovieClip(); var b:MovieClip = a;
user562566
source share