Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] while statement problem Re:

From: petr:krenzelok:trz:cz at: 3-Oct-2000 16:19

[capolunghi--att--com] 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-