Thanks for the tip, I hope you don't mind that I copied it to the forum under Code Tips and Advice at reboltalk.com.
----- Original Message ----- From: "Paul Tretter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 09, 2004 7:46 PM Subject: [REBOL] UNTIL > Ok. I know alot of guys are new to this list so I thought I would post something that was confusing to me when I started with REBOL. Ever look at the help for 'until: > > >> help until > USAGE: > UNTIL block > > DESCRIPTION: > Evaluates a block until it is TRUE. > UNTIL is a native value. > > ARGUMENTS: > block -- (Type: block) > > So what does this actually mean. Does this mean we return a value and what if we have 100 lines of code in 'until evaluation block. This was confusing for me having never really did programming before REBOL. So the easy answer is the last value that is TRUE will end the loop. Try yourself by just playing with values in the until eval block. > > until [true true false] > > until [false true true] > > until [true false] > > until [true true] > > As you can see whatever the last item in the block evaluates to determines the outcome of the loop. > > Hope this helps as I was a bit confused at how to use this great function early on. > > Paul Tretter > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > > > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.