Logical operator: And : Logical operators « Operator « VB.Net Tutorial






Module Tester

    Sub Main()
      Console.WriteLine("And" & vbCrLf & vbCrLf & _
         "False And False: " & (False And False) & vbCrLf & _
         "False And True: " & (False And True) & vbCrLf & _
         "True And False: " & (True And False) & vbCrLf & _
         "True And True: " & (True And True))
    End Sub 

End Module
And

False And False: False
False And True: False
True And False: False
True And True: True








3.3.Logical operators
3.3.1.Logical operator: AndAlso
3.3.2.Logical operator: OrElse
3.3.3.Logical operator: And
3.3.4.Logical operator: Or
3.3.5.Logical operator: Xor
3.3.6.Logical operator: Not
3.3.7.Use Logic operator Or to link two functions
3.3.8.Use logic operators in If statement: Not, And, Or