Name
= (is) — equality
Syntax
operand1
=operand2
Description
No coercion is performed; operands of different datatypes are not
equal. Synonym
is equal
to
has
abbreviations
equal
, equals
, and
equal to
.
Note
This operator is not overloaded as an assignment operator; see Section 7.1. It is not an error for a line of AppleScript code to consist of an equality comparison, like this:
x = 3
That line is an equality comparison, not an assignment! If you write a line like that, intending to write an assignment, your code will generate incorrect results that can be difficult to track down.
Get AppleScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.