Loops/For with a specified step: Difference between revisions

Content added Content deleted
(Added AutoHotkey.)
(Refined AHK.)
Line 55: Line 55:
=={{header|AutoHotkey}==
=={{header|AutoHotkey}==
<lang AutoHotkey>SetBatchLines, -1
<lang AutoHotkey>SetBatchLines, -1
iterations := 5
Loop, 50
step := 10
iterations *= step
Loop, % iterations
{
{
If Mod(A_Index, 10)
If Mod(A_Index, step)
Continue
Continue
MsgBox, % A_Index
MsgBox, % A_Index