If with not Equals : Not « Language Basics « VB.Net






If with not Equals

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

           
       








Related examples in the same category

1.Truth table for NotTruth table for Not