home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 267.GIFV.SLI < prev    next >
Text File  |  1993-02-17  |  782b  |  33 lines

  1. ;
  2. ; GIFV.SLI
  3. ; This script shows how to use the debuging command DISPLAY Vx and ECHO
  4. ; to show(as the script is running) information about the variables and
  5. ; to echo text messages.
  6. ;
  7. ; This loops through 10 files. The first 5 files have a message that says
  8. ; they are in the first 5. The 7th file says it's the 7th file.
  9. ;
  10.         set v0 9
  11.         display v0
  12.         set v1 1
  13.         display v1
  14.         display v2
  15.         change-path f:\*.gif
  16. :loop
  17.         loadnext :exit
  18.         set v1 +
  19.         display v1
  20.         if v1<5 :doLess5
  21.         if v1=7 :do7
  22.         if v1>10 :exit
  23.         goto :loop
  24. :doLess5
  25.         echo We are still less than 5
  26.         wait 2
  27.         goto :loop
  28. :do7
  29.         echo We are now 7
  30.         wait 2
  31.         goto :loop
  32. :exit
  33.