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 / Logical Operations  /
Or

  • || || ... is the logical OR function. It evaluates its arguments in order, giving True immediately if any of them are True, and False if they are all False.
  • Or[ , , ... ] can be input in StandardForm and InputForm as ... . The character can be entered as ||, or or \[Or].
  • Or evaluates its arguments in a non-standard way (see Section A.4.2).
  • Or gives symbolic results when necessary. It applies no simplification rules, except removing initial arguments that are False.
  • See the Mathematica book: Section 1.5.6.
  • See also: Xor, LogicalExpand.

    Further Examples

    This uses the shorthand notation for Or.

    In[1]:=

    Out[1]=

    In[2]:=

    Out[2]=