home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / nShell™ 1.0.3 / nShell / bin / man / man.rsrc / TEXT_16160_man while general.txt < prev    next >
Encoding:
Text File  |  1994-09-24  |  620 b   |  27 lines

  1.  
  2. NAME
  3.  
  4. while - conditional execution
  5.  
  6. SYNOPSIS
  7.  
  8. while <commands1> do <commands2> done
  9.  
  10. DESCRIPTION
  11.  
  12. In this structure, the <commands1> clause will always execute.  If the result of the last command of the set completes without error (result = zero), then the <commands2> clause will be executed.  Control will then return to the <commands1> clause, and the process will continue until the last command of this set produces an error (result <> 0).
  13.  
  14. Flow of control statements are available in nShell-Pro(tm)
  15.  
  16. RETURN CODES
  17.  
  18. <0    Error
  19. 0    Success
  20.  
  21. SEE ALSO
  22.  
  23. until, if
  24.  
  25. EXAMPLES
  26.  
  27. while yesno "Should I say hello?" do hello done