Loops/Foreach: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,147: | Line 1,147: | ||
'\n'.print; |
'\n'.print; |
||
};</lang> |
};</lang> |
||
=={{header|LiveCode}}== |
|||
Livecode's ''for each'' operates on chunks which may be words, items, lines, tokens. Example is for items.<lang LiveCode>repeat for each item x in "red, green, blue" |
|||
put x & cr |
|||
--wait 100 millisec -- req'd if you want to see in the LC Message Box (akin to repl) |
|||
end repeat</lang> |
|||
=={{header|Logo}}== |
=={{header|Logo}}== |