aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.45k stars 572 forks source link

How can I save list of names as a variable one by one in loop to use it further? - try this #1341

Closed adisar45 closed 1 year ago

adisar45 commented 1 year ago

I have a list of names, I want to save one as variable and use it to perform some action and move on to another variable and perform the action with that and so on for the whole list of names. Can you help me ?

ruthtxh commented 1 year ago

Hi @adisar45 you can try saving the list to a variable, then use a tagui for loop to access it like this:

list = ["a", "b", "c"]
for n from 0 to list.length-1
  echo `list[n]`

https://tagui.readthedocs.io/en/latest/main_concepts.html#for-loops

ruthtxh commented 1 year ago

Closing this for now, feel free to reopen.