home *** CD-ROM | disk | FTP | other *** search
-
- NAME
-
- else - conditional execution
-
- SYNOPSIS
-
- if <commands1> then <commands2> [else <commands3>] endif
-
- DESCRIPTION
-
- If the result of the last command of the set <commands1> completes without error (result = zero), then the <commands2> clause will be executed.
-
- 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.
-
- Flow of control statements are available in nShell-Pro(tm)
-
- RETURN CODES
-
- <0 Error
- 0 Success
-
- SEE ALSO
-
- while, until
-
- EXAMPLES
-
- if yesno "Should I say hello?" then hello endif
-