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

[REBOL] Quick javascript->rebol question

From: chalz::earthlink::net at: 9-Oct-2005 3:46

Howdy. I have a quick question here which isn't purely REBOL. I'm trying to convert some javascript into REBOL, though, and came across something I'm uncertain of: int dn=dr;{while (dr==dn || dr==dj || dr==du){dr=(int)random(8)+1;}} Why is the while wrapped in brackets? What does this do? It's been about 6 or so years since I worked in Java or C/++ - never really did javascript at all, but the majority of it is easily deciphered. This however has me temporarily confused. Appreciate any info. Thanks. --Charles