Continue
Examples
open all close allBasic Examples (1)
Use Continue to only sum numbers between 1 and 10:
r = 0;
Do[If[EvenQ[i], Continue[]];r += Echo[i], {i, 10}];rScope (1)
Use Continue inside a Do loop:
r = 0;
Do[If[EvenQ[i], Continue[]];r += i, {i, 10}];rUse Continue inside a For loop:
r = 0;
For[i = 1, i ≤ 10, i++, If[EvenQ[i], Continue[]];r += i];rUse Continue inside a While loop:
r = 0;i = 0;
While[i < 10, i++;If[EvenQ[i], Continue[]];r += i];rProperties & Relations (1)
Break exits the loop:
For[i = 1, i ≤ 10, i++, If[i > 2, Break[]]];iTech Notes
Related Guides
History
Introduced in 1988 (1.0) | Updated in 1996 (3.0) ▪ 2022 (13.1)
Text
Wolfram Research (1988), Continue, Wolfram Language function, https://reference.wolfram.com/language/ref/Continue.html (updated 2022).
CMS
Wolfram Language. 1988. "Continue." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. 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
BibTeX
@misc{reference.wolfram_2026_continue, author="Wolfram Research", title="{Continue}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/Continue.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_continue, organization={Wolfram Research}, title={Continue}, year={2022}, url={https://reference.wolfram.com/language/ref/Continue.html}, note=[Accessed: 15-June-2026]}