foxfirefey: A guy looking ridiculous by doing a fashionable posing with a mouse, slinging the cord over his shoulders. (geek)
foxfirefey ([personal profile] foxfirefey) wrote in [site community profile] dw_styles 2010-06-22 05:33 pm (UTC)

Behold:

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.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org