Skip to content

Comparison Operators

Comparison operators compare two values and return a Boolean result.

Operator Description Example Result
= Equal to 5 = 5 True
<> Not equal to 4 <> 5 True
> Greater than 7 > 3 True
< Less than 2 < 5 True
>= Greater than or equal to 5 >= 5 True
<= Less than or equal to 3 <= 4 True
If l = t Then
  Print("l equals t")
End If

If a <> b Then
  Print("a is not equal to b")
End If