Javascript !something && function()
        Posted  
        
            by cpf
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by cpf
        
        
        
        Published on 2010-04-06T17:07:13Z
        Indexed on 
            2010/04/06
            17:13 UTC
        
        
        Read the original article
        Hit count: 209
        
JavaScript
Hi Stackoverflow,
I have been looking at the source code of raphael (http://raphaeljs.com/index.html) and I see a lot of stuff like !variable && function() (e.g.: !svg.bottom && (svg.bottom = this); )
What does that exactly do? Does it check first and execute only if not true?
Thanks.
© Stack Overflow or respective owner