Razorberry’s Adobe Flash Blog

August 22nd, 2006

Actionscript 2 Mystery of the day

Posted by Ash in Actionscript
Actionscript

I was just wondering if anyone could give me a good reason why

trace( (0 || 23) );

would trace ‘23′ instead of ‘true’ in AS2.

Bonus points for answers that contain mythical code-gnomes.

Macromedia XML News Aggregator