And—Wolfram Documentation
e1&&e2&&…
is the logical AND function. It evaluates its arguments in order, giving False immediately if any of them are False, and True if they are all True.
Details
Examples
open all close allBasic Examples (4)
Scope (5)
And works with any number of arguments:
And is associative:
And with explicit True or False arguments will simplify:
And evaluates its arguments in order, stopping when an argument evaluates to False:
The order of arguments may be important:
Symbolic transformations will not preserve argument ordering:
TraditionalForm formatting:
Applications (6)
Combine conditions in Wolfram Language code:
If an argument of And evaluates to False, any subsequent arguments are not evaluated:
The argument order in And matters; if the last two arguments are reversed, I>0 is evaluated:
Combine equations and inequalities; And is used both in the input and in the output:
Use And to combine conditions:
A cellular automaton based on And:
Find the area of the intersection of sets given by algebraic conditions:
Properties & Relations (8)
Truth table for binary And:
Ternary And:
And with a single argument will return the evaluated argument regardless of value:
&& has higher precedence than ||:
Use BooleanConvert to expand And with respect to Or:
De Morgan's laws relate And, Or, and Not:
Conjunction of conditions corresponds to the product or Min of Boole functions:
Use Thread to thread over lists:
Related Guides
History
Introduced in 1988 (1.0) | Updated in 1996 (3.0)
Text
Wolfram Research (1988), And, Wolfram Language function, https://reference.wolfram.com/language/ref/And.html (updated 1996).
CMS
Wolfram Language. 1988. "And." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/And.html.
APA
Wolfram Language. (1988). And. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/And.html
BibTeX
@misc{reference.wolfram_2025_and, author="Wolfram Research", title="{And}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/And.html}", note=[Accessed: 22-February-2026]}
BibLaTeX
@online{reference.wolfram_2025_and, organization={Wolfram Research}, title={And}, year={1996}, url={https://reference.wolfram.com/language/ref/And.html}, note=[Accessed: 22-February-2026]}