var int[] counting = [0];
var int index = 1;
foreach var int k ($counting) {
print $k + "\n";
$counting[$index] = $index;
$index++;
}
Now, it'll stop when the style hits its rendering time limit, but it's definitely a while loop! You just need to put the condition around the part that adds the new item to the array and increments the position, and voila, while loop.
no subject
Now, it'll stop when the style hits its rendering time limit, but it's definitely a while loop! You just need to put the condition around the part that adds the new item to the array and increments the position, and voila, while loop.