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
Difference between revisions of "!LOOP"
(added link to "Demo-slideshow") |
(→Examples: added link to youtube demo) |
||
Line 19: | Line 19: | ||
=== Examples === | === Examples === | ||
− | + | * There is a [http://www.youtube.com/watch?v=3Ayo-H1mAgc demo video]. | |
− | Related example macros: [[Demo-Slideshow]] | + | * Related example macros: [[Demo-Slideshow]] |
Note: The <nowiki>{{!LOOP}}</nowiki> variable in the Demo-Slideshow example in iMacros for Firefox 6.0.1.5, and possibly other versions, is incorrectly shown in lowercase as <nowiki>{{!loop}}</nowiki>. This will not work and should be capitalized. | Note: The <nowiki>{{!LOOP}}</nowiki> variable in the Demo-Slideshow example in iMacros for Firefox 6.0.1.5, and possibly other versions, is incorrectly shown in lowercase as <nowiki>{{!loop}}</nowiki>. This will not work and should be capitalized. | ||
=== See Also === | === See Also === |
Revision as of 09:19, 12 January 2010
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
* 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.