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
Hi Piroz,
In this context, what is the definition of a
"condition"
A condition is an expression that evaluates either to a logical false
(including none, off) or something else. Like in C, everything that is not
a logical false is considered true, i.e.
if 1 [print {will be evaluated because
[EMAIL PROTECTED] wrote:
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?
Because WHILE needs to evaluate the condition several times, so it
needs the code of the
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.