Boolean
A value of class Boolean is a logical truth value. The most common Boolean values are the results of comparisons, such as4 > 3andWordCount = 5. The two possible Boolean values aretrueandfalse.LITERAL EXPRESSIONS
true falsePROPERTY
Class- The class identifier for the object. This property is read-only, and its value is always
boolean.ELEMENTS
NoneOPERATORS
The operators that take Boolean values as operands are And, Or, Not,&,=,
and�.The
=operator returnstrueif both operands evaluate to the same Boolean value (eithertrueorfalse); the�operator returnstrueif the operands evaluate to different Boolean values.The binary operators And and Or take Boolean expressions as operands and return Boolean values. An And operation, such as
(2 > 1) and (4 > 3), has the valuetrueif both its operands aretrue, andfalseotherwise. An Or operation, such as(theString = "Yes") or (today = "Tuesday"), has the valuetrueif either of its operands istrue.The unary Not operator changes a
truevalue tofalseor afalsevalue
totrue.COERCIONS SUPPORTED
AppleScript supports coercion of a Boolean value to a single-item list.