Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
not

Syntax

set theTruth to not ("index.html" contains ".html") -- returns false

Return value

boolean; true or false

Description

not is a logical operator that reverses the boolean value of a variable or expression. If the variable or expression is true then the not return value is false, and vice versa. AppleScript does not have the (!) symbolic alternative for the not operator as Perl and other scripting languages do.