The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
!LOOP
Counts the current loop number in loop mode. Especially useful together with the POS attribute of the TAG command. With SET !LOOP 3 you can set a start value for the loop counter (the default value is 1).
Note:
SET !LOOP n
is ignored for every loop run except the first one.
The variable {{!LOOP}} represents the current loop number when a script is running in loop mode.
Value
Any integer 1,2,3,4,5,....
Set By
[X] Internal
[X] SET
Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.
Examples
Related example macros: Demo-Slideshow
Note: The {{!LOOP}} variable in the Demo-Slideshow example in iMacros for Firefox 6.0.1.5, and possibly other versions, is incorrectly shown in lowercase as {{!loop}}. This will not work and should be capitalized.