- Or[e1,e2,…] can be input in StandardForm and InputForm as . The character can be entered as ||, or, or \[Or].
- Or has attribute HoldAll, and explicitly controls the evaluation of its arguments. In the are evaluated in order, stopping if any of them are found to be True.
- Or gives symbolic results when necessary, removing initial arguments that are False.
Examplesopen allclose all
Basic Examples (4)
Or works with any number of arguments:
Or is associative:
Combine equations and inequalities; Or is used both in the input and the output:
A cellular automaton based on Or:
Properties & Relations (7)
Truth table for binary Or:
Or with a single argument will return the evaluated argument regardless of value:
Wolfram Research (1988), Or, Wolfram Language function, https://reference.wolfram.com/language/ref/Or.html (updated 1996).
Wolfram Language. 1988. "Or." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/Or.html.
Wolfram Language. (1988). Or. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Or.html