({{, (Subscript[expr, 1]);(Subscript[expr, 2]);…
evaluates the (Subscript[expr, i]) in turn, giving the last one as the result. }})

OpenersNotesSection(Spacer1)Details

(RefLink[CompoundExpression, paclet:ref/CompoundExpression]) evaluates its arguments in a sequence corresponding to the control flow.

The returned value can be the result of (RefLink[Return, paclet:ref/Return])[expr].

The evaluation of the (Subscript[expr, i]) can be affected by (RefLink[Return, paclet:ref/Return]), (RefLink[Throw, paclet:ref/Throw]), and (RefLink[Goto, paclet:ref/Goto]).

(Subscript[expr, 1]);(Subscript[expr, 2]); returns value (RefLink[Null, paclet:ref/Null]). If it is given as input, the resulting output will not be printed. (RefLink[Out, paclet:ref/Out])[n] will nevertheless be assigned to be the value of (Subscript[expr, 2]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Print[x];Print[y]

a=2;b=3;a+b

Do a computation, but do not print its output:

n=2^200;

% is still set to be the output:

%

OpenersExampleSection1(Spacer1)Scope  (1)

Use (RefLink[Throw, paclet:ref/Throw]), (RefLink[Catch, paclet:ref/Catch]) to exit immediately:

Catch[a=2;Throw[a];a=5]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Block, paclet:ref/Block])  ▪  (RefLink[Module, paclet:ref/Module])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Sequences of Operations, paclet:tutorial/SequencesOfOperations])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wolfram Language Syntax, paclet:guide/Syntax])}, {▪(RefLinkPlain[Procedural Programming, paclet:guide/ProceduralProgramming])}, {▪(RefLinkPlain[Language Overview, paclet:guide/LanguageOverview])}, {▪(RefLinkPlain[Wolfram System Sessions, paclet:guide/WolframSystemSessions])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-FastIntro.png(Spacer1)Fast Introduction for Programmers: Procedures, http://www.wolfram.com/language/fast-introduction-for-programmers/procedures/])}})}})