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

Reply via email to