This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Programming / String Manipulation  /
SameQ

  • lhs === rhs yields True if the expression lhs is identical to rhs, and yields False otherwise.
  • SameQ requires exact correspondence between expressions, except that it considers Real numbers equal if their difference is less than the uncertainty of either of them.
  • 2 === 2. gives False.
  • === === gives True if all the are identical.
  • See the Mathematica book: Section 2.3.5.
  • See also: UnsameQ, Equal, Order.