home *** CD-ROM | disk | FTP | other *** search
- *
- * GOTO.CMD
- *
- * This script demonstrates some of the uses of the GOTO command. In
- * particular the WHILE option of the Goto command is illustrated.
- *
-
- *
- * This is a Label for a goto which comes later. It could have been
- * entered as 'LABEL Top_Of_Goto' but the ':' form is easier to type
- * and to read.
- *
- * The first question just asks if they wish to continue or not. If
- * they enter anything besides 'NO' it will continue to ask.
- *
- :Top_Of_Goto
-
- Enter Local 0 Do You Want To Continue (Yes or No)?
- Display The Answer Was: &0
-
- Goto Top_Of_Goto If Not Compare "&0" "NO"
-
- AnyKey Local Message All Done Demo 1 ...
-
- *
- * This example is very similar only it uses a defined variable to do the
- * GOTO. This is a little easier to read.
- *
- Define ANSWER
-
- :Top_Of_Test2
-
- Enter Local Answer Do You Want To Continue?
- Display The Answer Was: &answer
-
- Goto Top_Of_Test2 While Not Compare "&answer" "NO"
-
- AnyKey Local Message All Done Demo 2 ...
-
-