Skip to content

Comparisons

9 built-in function(s) in this category.

  • Equal — lhs == rhs or Equal[lhs, rhs] (Stable)
  • Greater — x > y or Greater[x, y] (Stable)
  • GreaterEqual — x >= y or GreaterEqual[x, y] (Stable)
  • Inequality — Inequality[v0, op0, v1, op1, v2, ...] is the canonical form for a chained comparison such as a < b <= c. It returns True if every adjacent pair holds, False if any pair fails, and otherwise the residual chain with decidable pairs dropped. (Stable)
  • Less — x < y or Less[x, y] (Stable)
  • LessEqual — x <= y or LessEqual[x, y] (Stable)
  • SameQ — lhs === rhs or SameQ[lhs, rhs] (Stable)
  • Unequal — lhs != rhs or Unequal[lhs, rhs] (Stable)
  • UnsameQ — lhs =!= rhs or UnsameQ[lhs, rhs] (Stable)