Stop condition in virtual environment

Good afternoon people,

I would like help to see if I can get an “elegant” solution.

I have this list in a TOTVS environment, at a certain point in the process I will need to select all the notes that are loaded (this number is not fixed).

I tried various combinations of stop conditions, but in all of them the last item is being checked and unchecked.

I ask: Can someone point me to a reliable solution?

Ps .: There is already an option to export this list to a spreadsheet editor and perform the row count in the editor and return this number to be used.

Thanks for any help.