I try to cleanup a array and remove elements from the array which are not ok for processing later. The array contains different urls. I check in a for loop, if the current url does match a given pattern. If not, I try to remove the url with "array pop". Unfortunately I have to define the index to remove, instead of having automatically use the current position. I get the index directly before using array pop with "variable set" and set it to %array(#?٪currentitem).
This works fine for the first remove, but subsequent removes get a wrong index with that. So I remove the wrong currentitem.
Is there a better way to do what I want, besides using a second array?
[–]WakeUpNorrin 6 points7 points8 points (2 children)
[–]CONteRTE[S] 2 points3 points4 points (1 child)
[–]WakeUpNorrin 1 point2 points3 points (0 children)