home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_2.iso / files / 676.lha / MultiBox / Examples / Example1 next >
Text File  |  1992-06-26  |  907b  |  28 lines

  1. failat 65537                    ; this should be set high enough - for more read the docs
  2. /multibox HAIL MultiBoxRequest! TITLE "What config do you have?" BOXES 2nd floppy drive_|Ram expansion_|HardDrive|Turboboard|etc
  3.  
  4. set result $RC                    ; save the return code
  5.  
  6. echo "*NYou say that you are using an Amiga with:*N"
  7.  
  8. if $result EQ 0                    ; Nothing seleced or Cancel clicked
  9.     echo "NOTHING! - poor Amiganier"
  10. endif
  11. if 1 EQ `eval $result & 1`            ; for the usage of the backstrick you should read the Amiga OS2.0 manuals
  12.     echo " - second floppy drive"        ; test every bit
  13. endif                                           ; you should make eval resident if you often use such scripts!
  14. if 2 EQ `eval $result & 2`
  15.     echo " - more ram"
  16. endif
  17. if 4 EQ `eval $result & 4`
  18.     echo " - harddisc"
  19. endif
  20. if 8 EQ `eval $result & 8`
  21.     echo " - turboboard"
  22. endif
  23. if 16 EQ `eval $result & 16`
  24.     echo " - some funny equipment!"
  25. endif
  26.  
  27. echo "READY.*N"
  28.