Friday, January 8, 2010

What does an exclamation mark mean in actionscript code?

for example, what does


while( item %26lt; 5 %26amp;%26amp; ! b )


mean?


while the item is less than 5 and ......?


thanksWhat does an exclamation mark mean in actionscript code?
It means 'not'. And is used to invert a boolean value you may get from b.


Let's say 'b' contains 'true', then '! b', means 'not true'.

No comments:

Post a Comment