CompoundExpression
CompoundExpression[e1, e2, ...]
evaluates each expression in order and returns the result of the last one.
Attributes[CompoundExpression] := {HoldAll, Protected, ReadProtected}
Simple examples
The result of the first expression is not included in the output, but the result of the second is:
Including a trailing semicolon causes the expression to returnNull
: