' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and 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
