I have a question about the image above. It’s from the official PEGA documentation. Initially, two records should be selected, but according to the Data Transform implementation, only the last record found will be selected. This is because in the loop of step 2, TempPage.pyGUID will be overwritten by the last one found, and in step 3, only the last one is added.
I think you are correct and your instinct is right!
the screenshot is visually confusing. As step 2.2 overrides TempPage.pyGUID inside the loop and step 3 is a single append after the loop, only the last match would survive. So the only way the example can work is if the append is within the loop scope i.e. step 2.3.
If this is issue in docs (looks so) can you please raise it with documentation team? In toolbox above the article (an slightly to the right) there is a button to raise feedback