Loop structures: Difference between revisions

→‎[[AppleScript]]: Added repeat-with
(Added SmallTalk)
(→‎[[AppleScript]]: Added repeat-with)
Line 10:
--endless loop
end repeat
 
===repeat-with===
repeat with i from 1 to 20
--do something
end repeat
 
set array to {1,2,3,4,5}
repeat with i in array
display dialog i
end repeat
 
==[[C]]==