Question
Clone Collection iteration
Hello
I am curious to see the options available to me with respects to clones.
I am using the GetClones() method in order to interogate several identical items on a page which correspond to objects. The Getclones method works and returns a CloneCollection.
My question is related to iterating this collection.
Is the only way to iterate using a for loop - Meaning the ENTIRE collection would have to be iterated through?
Or is there a way i can index a specific value ie. if my CloneCollection is 10 items long, can i index item 5 without having to use a for loop and iterate 0 to 4?
Thankyou in advance.
The CloneCollection may not be in the visual order on-screen, so you'll probably want to iterate through each one. You can stop when you reach the one you care about, but you'd likely need to go through each one. You can also use a ListLoop and extract a proxy from the Item to get right to the properties of a specific clone.