[EMAIL PROTECTED] wrote:

> Anyone,
>
>   Just learning REbol and need some explanation as to how to do this:
>
>  while [ prime and test <= square-root number ]  [..]

look at 'all and 'any functions ....

while [ all [(prime <= square-root number) (test <= square-root number)] ....
parens () nod needed  ...

not sure if it's what you wanted to achieve ...

btw: and should work imho too, just use parens ...

while [(prime <= square-root number) and (test <= square-root number)] ....

Cheers,
-pekr-

>
>
> Rebol complains that i can't use an and .  Can multiple conditions be placed
> in the while clause ??? If so, how do you do it?
>
> Thanks in advance!
>
> Joe

Reply via email to