Problem with selecting a specific Tab with ${!LOOP}


#1

Hello,
So am having some issues with loop command, apparently when I use tab=${!LOOP} it start from tab 1 And I want it to start from tab 2
I tried tab=$+1{!LOOP} but it gives me this error code :

[error] invalid tab offset, '$+1{!LOOP}'


#2

You need to use storeEval to do the “+1” calculation:

  • storeEval | ${!LOOP} +1 | mytab
  • selectWindow | tab=${mytab}

#3

Thank you so much, it worked :slight_smile: