Purpose
"Not equal" compares the values of two expressions of the same or similar types.
If the values are different, TRUE is returned; otherwise, FALSE is returned.
Syntax
Expression1 <> Expression2
Example
Sub Main()
Dim num as Integer
num = 5
If num <> 5 Then
Print "The value of 'num' is not equal to 5"
Else
Print "The value of 'num' is equal to 5"
End If
End Sub
|