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_16140_man else general.txt < prev    next >
Encoding:
Text File  |  1994-09-24  |  590 b   |  30 lines

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