Comparison Operators

αžŸαž‰αŸ’αž‰αžΆβ€‹αž”αŸ’αžšαž˜αžΆαžŽβ€‹αžœαž·αž’αžΈβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž” αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”β€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž–αžΈαžšΒ αŸ” αž›αž‘αŸ’αž’αž•αž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αžαŸ’αžšαž‘αž”αŸ‹β€‹αž‡αžΆβ€‹αž€αž“αŸ’αžŸαŸ„αž˜ "αž”αŸŠαžΌαž›αžΈαž“" αžŠαŸ‚αž›β€‹αž”αž‰αŸ’αž‡αžΆαž€αŸ‹β€‹αžαžΆβ€‹αžαžΎβ€‹αž€αžΆαžšβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž” αž–αž·αž(-1) αž¬β€‹αž˜αž·αž“β€‹αž–αž·αž (0)Β αŸ”

αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’ αŸ–


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

αž”αŸ‰αžΆαžšαŸ‰αžΆαž˜αŸ‰αŸ‚αžαŸ’αžš αŸ–

Result αŸ– αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž”αŸŠαžΌαž›αžΈαž“β€‹αžŠαŸ‚αž›β€‹αž”αž‰αŸ’αž‡αžΆαž€αŸ‹β€‹αž–αžΈβ€‹αž›αž‘αŸ’αž’αž•αž›β€‹αž“αŸƒβ€‹αž€αžΆαžšβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž” (αž–αž·αž αž¬β€‹αž˜αž·αž“β€‹αž–αž·αž)

Expression1, Expression2 αŸ– αžαž˜αŸ’αž›αŸƒβ€‹αž›αŸαž αž¬β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αžŽαžΆβ€‹αž˜αž½αž™ αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”Β αŸ”

αžŸαž‰αŸ’αž‰αžΆβ€‹αž”αŸ’αžšαž˜αžΆαžŽβ€‹αžœαž·αž’αžΈβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”

= αŸ– αžŸαŸ’αž˜αžΎ

< αŸ– αžαžΌαž…β€‹αž‡αžΆαž„

> αŸ– αž’αŸ†β€‹αž‡αžΆαž„

<= αŸ– αžαžΌαž…β€‹αž‡αžΆαž„β€‹ αž¬β€‹ αžŸαŸ’αž˜αžΎ

>= αŸ– αž’αŸ†β€‹αž‡αžΆαž„ αž¬β€‹αžŸαŸ’αž˜αžΎ

<> αŸ– αž˜αž·αž“β€‹αžŸαŸ’αž˜αžΎ

αž§αž‘αžΆαž αžšαžŽαŸ αŸ–


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

Please support us!