# Comparison Operators

Comparison operators compare two expressions. The result is returned as a Boolean expression that determines if the comparison is True (-1) or False (0).

## āļāˇāļģāļ āļģāˇāļ­āˇāļē:

``````
Result = Expression1 { = | < | > | <= | >= } Expression2
``````

## āļ´āļģāˇāļ¸āˇāļ­āˇāļąāˇ:

Result: Boolean expression that specifies the result of the comparison (True, or False)

Expression1, Expression2: āļāļļāļ§ āˇāļ¸āˇāļļāļąāˇāļ° āļāļģāˇāļ¸āļ§ āļāˇāˇāˇâāļē āļāļąāˇāļ¸ āˇāļāļāˇâāļēāˇāļ­āˇāļ¸āļ āļ´āˇâāļģāļāˇāˇāļąāļēāļąāˇ.

## āˇāˇāˇāˇāļŗāˇāļ¸āˇ āļ¸āˇāˇāˇāļēāˇāļ¸āˇāļāˇāļģāļ

= : Equal to

< : āˇāļŠāˇ āļāļŊāˇāļ´āļ­āļģ

> : āˇāļŠāˇ āˇāˇāˇāˇāļŊāļ­āļģ

<= : āˇāļŠāˇ āļāļŊāˇāļ´āļ­āļģ āˇāˇ āˇāļ¸āˇāļą

>= : āˇāļŠāˇ āˇāˇāˇāˇāļŊāļ­āļģ āˇāˇ āˇāļ¸āˇāļą

<> : āļāˇāļ¸āˇāļą

## āļāļ¯āˇāˇāļģāļĢāļē:

``````
Sub ExampleUnequal
Dim sFile As String
DIM sRoot As String REM ' Root directory for file in and output
sRoot = "c:\"
sFile = Dir\$( sRoot ,22)
If sFile <> "" Then
Do
MsgBox sFile
sFile = Dir\$
Loop Until sFile = ""
End If
End Sub
``````