FOR EACH variable {, variable} IN expression
[CONTINUE]
[BREAK]
[EXIT FOR]
{ statement }
ELSE
{ statement }
END FOR
Iterate through a collection (table, list). If only one loop variable is used, it will hold the index from the collection. If two variables are used, they will hold the key/index and value. CONTINUE, BREAK and ELSE behave the same as a FOR loop.
' Print the value and keys from a list
FOR EACH key, value IN list
PRINT key, value
END FOR