home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / control / while < prev   
Encoding:
Text File  |  1992-12-17  |  854 b   |  14 lines

  1.           while test body
  2.                The while command evaluates test as an  expression  (in
  3.                the  same  way  that expr evaluates its argument).  The
  4.                value of the expression must be numeric; if it is  non-
  5.                zero  then  body  is  executed by passing it to the Tcl
  6.                interpreter.  Once body has been executed then test  is
  7.                evaluated   again,   and   the  process  repeats  until
  8.                eventually test evaluates  to  a  zero  numeric  value.
  9.                Continue  commands  may  be  executed  inside  body  to
  10.                terminate the current iteration of the loop, and  break
  11.                commands may be executed inside body to cause immediate
  12.                termination of the while command.   The  while  command
  13.                always returns an empty string.
  14.