Continue

Continue[]

exits to the nearest enclosing Do, For, or While in a procedural program.

Details

  • 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.

Examples

open allclose all

Basic Examples  (1)

Scope  (1)

Use Continue inside a Do loop:

Use Continue inside a For loop:

Use Continue inside a While loop:

Properties & Relations  (1)

Break exits the loop:

Wolfram Research (1988), Continue, Wolfram Language function, https://reference.wolfram.com/language/ref/Continue.html (updated 1996).

Text

Wolfram Research (1988), Continue, Wolfram Language function, https://reference.wolfram.com/language/ref/Continue.html (updated 1996).

BibTeX

@misc{reference.wolfram_2020_continue, author="Wolfram Research", title="{Continue}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/Continue.html}", note=[Accessed: 11-May-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_continue, organization={Wolfram Research}, title={Continue}, year={1996}, url={https://reference.wolfram.com/language/ref/Continue.html}, note=[Accessed: 11-May-2021 ]}

CMS

Wolfram Language. 1988. "Continue." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/Continue.html.

APA

Wolfram Language. (1988). Continue. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Continue.html