This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Logical Operations /


FilledSmallSquare !expr is the logical NOT function. It gives False if expr is True, and True if it is False.

FilledSmallSquare Not[expr] can be input in StandardForm and InputForm as expr. The character can be entered as AliasIndicator!AliasIndicator, AliasIndicatornotAliasIndicator or \[Not].

FilledSmallSquare Not gives symbolic results when necessary, applying various simplification rules to them.

FilledSmallSquare If you are using Mathematica with a text-based front end, then you cannot use the notation !expr for Not[expr] if it appears at the very beginning of a line. In this case, !expr is interpreted as a shell escape.

FilledSmallSquare See Section 1.5.6.

FilledSmallSquare See also: LogicalExpand, BitNot, Nand, Nor.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples