home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / doslogo.zip / LOGOHLP.ZIP / RUN.HLP < prev    next >
Text File  |  1990-06-11  |  577b  |  18 lines

  1. run  -- Command or operation, one input.
  2.      The input must be a list, containing a  Logo  instruction  line.   The
  3.      list is run as if you typed it directly to Logo.  Example:
  4.  
  5.      to while :condition :cmd
  6.      if not run :condition [stop]
  7.      run :cmd
  8.      while :condition :cmd
  9.      end
  10.  
  11.      make "number 1
  12.      while [:number < 5] [print :number; make "number :number+1]
  13.  
  14.      The run procedure can be used as an operation, if its input is a  Logo
  15.      expression which produces a value, instead of a complete instruction:
  16.  
  17.      print run [sum 2 3]
  18.