Language Guide

CHAPTER 6
Expressions
Operations 169
CLASS IDENTIFIER
Two class identifiers are equal if they are the same identifier. They are not equal
if they are different identifiers.
CONSTANT
Two constants are equal if they are the same. They are not equal if they
are different.
DATA
Two data values are equal if they are the same length in bytes and their bytes
are the same (AppleScript does a byte-wise comparison).
DATE
Two dates are equal if they both represent the same date, even if they are
expressed in different formats. For example, the following expression is true,
because date "12/5/92" and date "December 5th, 1992" represent
the same date.
date "12/5/92" = date "December 5th, 1992"
INTEGER
Two integers are equal if they are the same. They are not equal if they
are different.
LIST
Two lists are equal if each item in the list to the left of the operator is equal to
the item in the same position in the list to the right of the operator. They are not
equal if items in the same positions in the lists are not equal or if the lists have
different numbers of items. For example,
{ (1 + 1), (4 > 3) } = {2, true}
is true, because (1 + 1) evaluates to 2, and (4 > 3) evaluates to true.