In addition to relational and arithmetic operators, AppleScript also provides programmers with access to a set of compound operators, which you can use in place of embedded if statements to develop complex conditional logic. Table 4.3 lists AppleScript’s compound operators and outlines their purposes.
|and||Returns a value of true only if both expressions return values of true.|
|or||Returns a value of true if either expression returns a value of true.|
|not||Reverses or negates the value returned by an expression.|
To see an example of how to use a compound operator, take a look at the following example.
set DateString to the current date set ToDay ...