8Mar/060
Great explanation of AndAlso
I just thought this was a really great explanation of the AndAlso operator in VB.NET. Thought I’d post it here to make it a little easier for people to find.
Way To Go O.O.! – The Daily WTF
Snagglepuss wrote: mike5 wrote: Gotta love a language that has “AndAlso” operator…Yeah, that kind of threw me. What’s the difference between “AndAlso” and “And”? Does it have something to do with lazy vs strict evaluation?
It’s a “bitwise” And versus the “logical” And with left-to-right associativity with early drop-out from expression evaluation if any of the terms on the left evaluate to false.


