Forums / Developer / HOw to Replace a while loop ?? / Comment44864
Clemens T
Friday 09 December 2005 3:18:08 am
Ok, this code does exactly the opposite of what you want... that's the only thing you got to fix..now it goes up in the tree, as long as the parent = Geopositionnement, you need to make it so that it goes up the tree until it reaches the Geopositionnement, well at least.. does not do another replace of the $nodetest by it's parent, I'd say.. use a $match variable, so you can control it if you already found a match.
Greets,Clemens