' Collection of code snippets by Arne Vajhøj ' posted to eksperten.dk, usenet and other places (2002-now) Module Program Function Foobar() As Boolean Console.WriteLine("*") Return False End Function Sub Main() If Foobar() And Foobar() Then Console.WriteLine("and = true") Else Console.WriteLine("and = false") End If If Foobar() AndAlso Foobar() Then Console.WriteLine("and also = true") Else Console.WriteLine("and also = false") End If End Sub End Module