Help Contents / Control Structures / stop

stop

command.  Ends the running of the procedure in which it appears. Control is returned to the context in which that procedure was invoked.  The stopped procedure does not output a value. 

Example: 

	to t 
		forever [if key? [stop]] 
		pr [Hallo!] 
	end 
	;t defined 
	t 

Then, if you press any key t will stop	and the pr will not be run, because stop immediatly exits the currently running procedure. 


next: output
