They're not treated differently. A condition is a condition. "While" gives more options such as including more commands in the conditional block ( as long as the last is conditional ). It's the last condition in the block that determines if the loop continues. "while" and "until" are very useful. If you tried to accomplish the same just using "if"s then you'd be doing alot of unneccessary typing. Rebol is designed to let you write scripts quickly. If you wrote a c+ program to do the same as a simple rebol script, you'd be writting for hours or days. Note: The Rebol guides are getting more and more easy to understand. Rebol recently helped me understand part of the guide and decided to add the help in the next site update.:) timmy [EMAIL PROTECTED] wrote: > Hello, > > For both a decision-making construct like "if" and a > loop construct like > "while" we need to specify a condition. Based on the > evaluation of that > condition, we would proceed with the loop or the body > of the > conditional. > > In REBOL, the condition for a while loop is specified > as a "block" but > the condition for an if statement is specified as a > "condition." > > In this context, what is the definition of a > "condition" and why does > REBOL treat the two conditions differently? Why not > use a block for an > "if" statement as we do for loops? > > >> help if > If condition is TRUE, evaluates the block. > Arguments: > condition -- > block -- (block) > >> help while > While a condition block is TRUE, evaluates another > block. > Arguments: > cond-block -- (block) > body-block -- (block) > > Thanks. > > -- > Piroz Mohseni > [EMAIL PROTECTED] > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com
