!LOOP

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

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

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

* There is a demo video.
* 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.

See Also