imacro script-need help!!

Arikool

Newbie
Joined
Nov 3, 2012
Messages
16
Reaction score
13
dear friends,
I want to know if there is a way to make a !loop in imacro skip POS every second time. for example, if I start the !loop normally and write: "POS= {{!loop}}" it will start with POS=1, then POS =2, then POS=3, then POS=4, then POS=5 and so on. I want the macro to do only: POS=1, POS=3,POS=5 and so on (without POS=2 and POS=4). does someone know how to do this?
thanks!!!
 
VERSION BUILD=7601015 RECORDER=FX
TAB T=1
'Store the value of !loop in a variable
SET !VAR1 {{!LOOP}}
ADD !VAR1 {{!LOOP}}
'now !var1 = 2*!loop. Subtract 1 to get odd numbers.
ADD !VAR1 -1
TAG POS={{!VAR1}} TYPE=A ATTR=HREF:*
PROMPT {{!VAR1}}
 
Back
Top