Need Help with loop

hello I am new to using this UI Vision, I need his help for csv save.
I can use the csvsave function and I want to change the page without having to many commands, like

command: click
taget: “link = text2” (page 2 I mean)
value “…”

and many more pages, but I don’t want to have many commands that I write …
How to?

image

Replace the changing part with a variable click | linktext=${var1}

  • store | 1 | var1 = start value
  • DO
  • click | linktext=${var1}
  • executeScript_sandbox | return Number (${var1}) + 1; | var1 (= Add 1 to variable!9
  • REPEATIF (condition when to stop here)