Continue

From MiniScript Wiki
Revision as of 18:41, 28 May 2022 by JoeStrout (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

continue is a keyword statement that causes execution to jump directly to the next iteration of a for or while loop.

See also: break

Example

s = "I never could get the hang of Thursdays."
result = ""
for c in s
   if c == "a" or c == "e" then continue
   result = result + c
end for
print result

Output:

I nvr could gt th hng of Thursdys.