Mathematica > Core Language > Procedural Programming > Flow Control > Continue >

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.
Use Continue inside a Do loop:
Use Continue inside a For loop:
Use Continue inside a While loop:
Break exits the loop:
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF