From iMacros
Revision as of 18:55, 10 October 2012 by Td (Talk | contribs)

Jump to: navigation, search

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).



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 iMacros Browser IE Plug-in Firefox Chrome

Any integer 1,2,3,4,5,....

Set By

[X] Internal


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.


* There is a demo video.
* Related example macros: Demo-Slideshow

Note: The {{!LOOP}} variable in the Demo-Slideshow example in iMacros for Firefox, and possibly other versions, is incorrectly shown in lowercase as {{!loop}}. This will not work and should be capitalized.

See Also