This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

CompoundExpression (;)While


FilledSmallSquareDo[expr, imax] evaluates expr imax times.

FilledSmallSquareDo[expr, i, imax] evaluates expr with the variable i successively taking on the values 1 through imax (in steps of 1).

FilledSmallSquareDo[expr, i, imin, imax] starts with i = imin. Do[expr, i, imin, imax, di] uses steps di.

FilledSmallSquareDo[expr, i, imin, imax, j, jmin, jmax, ... ] evaluates expr looping over different values of j, etc. for each i.

FilledSmallSquareDo uses the standard Mathematica iteration specification.

FilledSmallSquareDo evaluates its arguments in a non-standard way (see Section A.4.2).

FilledSmallSquare You can use Return, Break, Continue and Throw inside Do.

FilledSmallSquare Unless an explicit Return is used, the value returned by Do is Null.

FilledSmallSquare See The Mathematica Book: Section 1.7.3 and Section 2.5.9.

FilledSmallSquare See also: For, While, Table, Nest, NestWhile, Fold.

Further Examples

CompoundExpression (;)While