Mathematica 9 is now available
 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]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.