This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / Flow Control  /
Continue

  • Continue[ ] exits to the nearest enclosing Do, For or While in a procedural program.
  • Continue[ ] takes effect as soon as it is evaluated, even if it appears inside other functions.
  • The function of Continue can also be achieved using Throw and Catch.
  • See the Mathematica book: Section 2.5.9.
  • See also: Break, Goto.

    Further Examples

    When k < 3 the loop continues without executing t+=2.

    In[1]:=

    In[2]:=

    1

    2

    6

    32

    170

    1032

    7238

    57920

    521298

    5213000