Hi Pihoz,

it doesn't even help, to have a look at until ...

>> help until
Evaluates a block until it is TRUE. 
Arguments:
    block --  (block)

where the loop-condition is the return value of 
the loop-block itself. Ideally they all had the
same parameters, I think.


regards,

Ingo

Those were the words of [EMAIL PROTECTED]:
> 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)
<...> 

--  _     .                                _
ingo@)|_ /|  _| _  <We ARE all ONE   www._|_o _   _ ._ _  
www./_|_) |o(_|(/_  We ARE all FREE> ingo@| |(_|o(_)| (_| 
http://www.2b1.de/Rebol/                     ._|      ._|

Reply via email to