expr1;expr2;…
evaluates the expri in turn, giving the last one as the result.


CompoundExpression 
expr1;expr2;…
evaluates the expri in turn, giving the last one as the result.
Details

- CompoundExpression evaluates its arguments in a sequence corresponding to the control flow.
- The returned value can be the result of Return[expr].
- The evaluation of the expri can be affected by Return, Throw, and Goto.
- expr1;expr2; returns value Null. If it is given as input, the resulting output will not be printed. Out[n] will nevertheless be assigned to be the value of expr2.
See Also
Tech Notes
Related Guides
Related Links
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), CompoundExpression, Wolfram Language function, https://reference.wolfram.com/language/ref/CompoundExpression.html.
CMS
Wolfram Language. 1988. "CompoundExpression." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CompoundExpression.html.
APA
Wolfram Language. (1988). CompoundExpression. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompoundExpression.html
BibTeX
@misc{reference.wolfram_2025_compoundexpression, author="Wolfram Research", title="{CompoundExpression}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/CompoundExpression.html}", note=[Accessed: 10-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_compoundexpression, organization={Wolfram Research}, title={CompoundExpression}, year={1988}, url={https://reference.wolfram.com/language/ref/CompoundExpression.html}, note=[Accessed: 10-August-2025]}