Continue

From MiniScript Wiki
Revision as of 18:41, 28 May 2022 by JoeStrout (talk | contribs)
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.

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.