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