Relation Operators for Comparisons
|Serial No||Programming Language||AppleScript|
|1||=||is / is equal to|
|4||>=||greater than or equal to|
|5||<=||less than or equal to|
In AppleScript, we can compare numbers and strings directly. If they are equal the result tab will return true else it will return false.
30 = 30 "nayan" = "nayan"
Explanation: As both the comparisons in the Script section are equal, the result tab will print true. Remember that AppleScript prints result of last executed statement only.
Based on whether the output for particular operator is true or false, we can use the if...else statements.