TO
Syntax TO procname 
TO procname var1 var2 ...
 
Explanation TO is the first word of a procedure definition. When typed at toplevel and followed by an unquoted procedure name, the procedure definition window opens with the procedure name given as input on the first line. Enter your procedure and press the Define button to define the procedure. In a Logo source code file, TO begins the definition of a procedure which is ended with a single END.

You can enter parameters (input variable names) either as part of the TO instruction or in the procedure definition window.
 

Example TO SAY.HELLO :NAME
     (PRINT "HELLO :NAME)
END
SAY.HELLO defined.
SAY.HELLO "BILL
HELLO BILL 

TopIndex