home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / PROGRAMM / LADYBUG.ZIP / TOOLS.BUG < prev    next >
Text File  |  1984-03-12  |  628b  |  41 lines

  1. to "and   :a :b
  2. if :a = "true [output :b = "true]
  3. output "false
  4. end
  5.  
  6. to "or   :a :b
  7. if :a = "true [output "true]
  8. output :b = "true
  9. end
  10.  
  11. to "while   :condition :list
  12. if ( run :condition ) = "false then stop
  13. run :list
  14. while :condition :list
  15. end
  16.  
  17. to "forever   :list
  18. repeat 32000 :list
  19. forever :list
  20. end
  21.  
  22. to "xor   :a :b
  23. if :a = "true [output :b = "false]
  24. output :b = "true
  25. end
  26.  
  27. to "wait  :seconds
  28. tone 32000  20 * :seconds
  29. tone 32000 1  ;above times the wait; this makes us wait
  30. end
  31.  
  32. to "max  :a :b
  33. if :a > :b [output :a]
  34. output :b
  35. end
  36.  
  37. to "min  :a :b
  38. if :a > :b [output :b]
  39. output :a
  40. end
  41.