diff --git a/_tags/iteration.md b/_tags/iteration.md index 86b6469..2a4fc71 100644 --- a/_tags/iteration.md +++ b/_tags/iteration.md @@ -127,6 +127,27 @@ Begins the loop at the specified index. 3 4 5 6 ``` +To start a loop from where the last loop using the same iterator left off, pass the special word `continue`. + +

Input

+```liquid +{% raw %} + +{% for item in array limit: 3 %} + {{ item }} +{% endfor %} +{% for item in array limit: 3 offset: continue %} + {{ item }} +{% endfor %} +{% endraw %} +``` + +

Output

+```text +1 2 3 +4 5 6 +``` + ### range Defines a range of numbers to loop through. The range can be defined by both literal and variable numbers, and can be pulled from a variable.