VB.Net/Language Basics/Not
If with not Equals
Imports System
Public Class MainClass
Shared Sub Main()
Dim strName As String
strName = "GRE"
"Is the name Gretchen?
If strName <> "Gre" Then
System.Console.WriteLine("The name is *not* Gre.")
End If
End Sub
End Class
Truth table for Not
Imports System
Public Class MainClass
Shared Sub Main(ByVal args As String())
" create truth table for Not
Console.Write("Not" & vbCrLf & "Not False: " & _
(Not False) & vbCrLf & "Not True: " & (Not True) & _
vbCrLf & vbCrLf)
End Sub
End Class