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 / TO.HLP < prev    next >
Text File  |  1990-06-11  |  976b  |  21 lines

  1. to  -- Command, special form, see below.
  2.      This command takes a variable number of inputs.  The first is the name
  3.      of  a  procedure to be defined.  The rest, if any, must be preceded by
  4.      colons, and are the names of variables to be used  as  inputs  to  the
  5.      procedure.   Logo  responds  to  the to command by printing a "greater
  6.      than" sign (>) prompt, to show you that you are defining  a  procedure
  7.      rather  than  entering  commands to be executed immediately.  You type
  8.      the instruction lines which make up the definition.  When you are done
  9.      with  the  definition,  type the special word end on a line by itself.
  10.      For example:
  11.  
  12.      _ê*to twoprint :thing
  13.      _ê>print :thing
  14.      _ê>print :thing
  15.      _ê>end
  16.      _ê*
  17.  
  18.      This example shows the definition of a procedure named twoprint, which
  19.      has  one  input, named thing.  The procedure you are defining with the
  20.      to command must not already be defined.
  21.