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






Module Tester

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

End Module
Not

Not False: True
Not True: False








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