I have had major trouble with this. I am sure it something obvious. I have got around it by adding some lines but would like to know exactly what is going wrong.
By my reckoning The first loop should check for the value of loopone and as it is not ONE it should then go to the second loop group.
However, as you can see if you run the macro - it goes straight to the second part of group one.
I realise that this has something to do with the ",," but I found that in another part of my script if I removed the commas it seemed to detect any open window.
I hope this makes sense.
Code: Select all
Let>loopone=TWO
// First Group
IF>loopone=ONE
IfWindowOpen>Untitled*,,
msg>Hi there this is loop ONE
ENDIF
IfWindowOpen>Untitled*,,
msg>Hi there this is loop ONE
ENDIF
GOTO>END
ENDIF
// Second Group
IF>loopone=TWO
IfWindowOpen>Untitled*,,
msg>Hi there this is loop TWO
ENDIF
IfWindowOpen>Untitled*,,
msg>Hi there this is loop TWO
ENDIF
ENDIF
GOTO>END
Label>END