VB.Net program to perform the LOGICAL AND operation using the AndAlso operator
'VB.Net program to perform the logical
'"and" operation using "AndAlso" operator.
Module Module1
Sub Main()
Dim num1 As Integer = 6
Dim num2 As Integer = 8
If num1 = 6 AndAlso num2 = 8 Then
Console.Write("Hello")
Else
Console.Write("Hiiii")
End If
Console.ReadLine()
End Sub
End Module
Output
Hello
Table of Contents