Re: #loop adjustments

will guaraldi <[email protected]> Thu, 10 Nov 2005 10:08:18 -0600 (CST)
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
On Thu, 10 Nov 2005, Eugene wrote:
>
> By the way, what will it do now for the
>
> #loop {1,4} {say %0}
>
> ? Is it going to do

The behavior I added only kicks off if you add range=false at the end. 
Otherwise, it continues with the original behavior.  So your example does 
what it used to do:

    say 1
    say 2
    say 3
    say 4

If you did:

    #loop {1,4} {say %0} {range=false}

then it will do:

    say 1
    say 4

because it iterates over 1 and 4 instead of iterating over the range of 
numbers from 1 to 4.

/will


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php